We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c2246 commit 4160f2cCopy full SHA for 4160f2c
scripts/tmux/tmux-start.sh
@@ -230,6 +230,10 @@ if ! tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
230
exit 1
231
fi
232
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
+
237
# Create session logs directory
238
SESSION_DIR="$PROJECT_ROOT/debug/tmux-sessions/$SESSION_NAME"
239
mkdir -p "$SESSION_DIR"
0 commit comments