tmux/claude: desktop notification when a background session needs attention #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The
tmux-claude-status.shhook already records per-window@claude_status(
busy/idle/waiting/prompt) onUserPromptSubmit/Stop/Notification.Today the only signal is a small marker on the tmux tab — invisible when you're
focused on another window or another app.
Proposal
When a window enters
prompt(blocked on a permission decision) orwaiting(idle-nudge) and that window is not the active/attached one, also fire a
desktop notification so background sessions can pull your attention.
Implementation sketch
dot_claude/hooks/tmux-claude-status.sh: after setting@claude_status,compare
$TMUX_PANE's window vs#{active}/ the attached client's currentwindow; if not active, emit a notification.
OSC 777/OSC 9desktop notification, orshell out to
terminal-notifier(title =/renamesession name, body = state).Effort
Small (~15–25 lines in the existing hook).
Part of the "attention routing" bundle (see the jump-to-attention and
status-summary issues).