tmux display-message succeeds even outside tmux by falling back to the most recently created session (agent-loop). This caused the hook to match and kill interactive CC sessions. Fix: check $TMUX env var first — only set when actually inside tmux.
2.6 KiB
2.6 KiB