Files
gastown/internal/tmux
aleiby fe09e59c8c fix(tmux): wake Claude in detached sessions by triggering SIGWINCH (#976)
Add functions to wake Claude Code's event loop in detached tmux sessions:

- IsSessionAttached: Check if session has attached clients
- WakePane: Always trigger SIGWINCH via resize dance
- WakePaneIfDetached: Smart wrapper that skips attached sessions

When Claude runs in a detached tmux session, its TUI library may not
process stdin until a terminal event occurs. Attaching triggers SIGWINCH
which wakes the event loop. WakePane simulates that by resizing the pane
down 1 row then back up.

NudgeSession and NudgePane now call WakePaneIfDetached after sending
Enter, covering all 22 nudge call sites in the codebase.

Fixes: gt-6s75ln

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 18:02:30 -08:00
..