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>
55 KiB
55 KiB