Skip to content

Commit 4160f2c

Browse files
committed
Fix one e2e test
1 parent f7c2246 commit 4160f2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/tmux/tmux-start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ if ! tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
230230
exit 1
231231
fi
232232

233+
# Keep the session alive even if the process exits, so we can still capture
234+
# the last terminal output for diagnostics.
235+
tmux set-option -t "$SESSION_NAME" remain-on-exit on 2>/dev/null || true
236+
233237
# Create session logs directory
234238
SESSION_DIR="$PROJECT_ROOT/debug/tmux-sessions/$SESSION_NAME"
235239
mkdir -p "$SESSION_DIR"

0 commit comments

Comments
 (0)