Skip to content

fix(tmux): use bare pane ID in NudgeSession, resolve window ID in WakePane (la-imkr)#3480

Open
seanbearden wants to merge 1 commit intogastownhall:mainfrom
seanbearden:fix/nudge-pane-id-targeting
Open

fix(tmux): use bare pane ID in NudgeSession, resolve window ID in WakePane (la-imkr)#3480
seanbearden wants to merge 1 commit intogastownhall:mainfrom
seanbearden:fix/nudge-pane-id-targeting

Conversation

@seanbearden
Copy link
Copy Markdown
Contributor

Summary

  • NudgeSessionWithOpts qualified pane IDs with session names (session:%95), but tmux parses session:X as session:window — failing with can't find window: %95. This broke all nudge delivery to crew agents via FindAgentPane, causing agents to sit idle despite having mail.
  • WakePane passed pane IDs directly to resize-window, which requires a window target. Now resolves the window ID via display-message first.
  • WakePaneIfDetached in NudgeSessionWithOpts now receives the resolved target (pane ID) instead of session name, correctly waking the agent's window in multi-window sessions.

Test plan

  • go build ./... passes
  • go test ./internal/tmux/ -run Nudge passes
  • Manual verification: tmux send-keys -t %95 succeeds, tmux send-keys -t "session:%95" fails with the reported error
  • Manual verification: tmux display-message -p -t %95 "#{window_id}" correctly resolves @95

🤖 Generated with Claude Code

…ePane (la-imkr)

NudgeSessionWithOpts qualified pane IDs with session names (e.g.,
"session:%95"), but tmux parses "session:X" as "session:window" — the
pane ID was treated as a window name, failing with "can't find window:
%95". This broke all nudge delivery to crew agents via FindAgentPane,
causing agents to sit idle despite having mail.

Fix: use bare pane IDs (globally unique in tmux) instead of the broken
session:paneID format. Also fix WakePane to resolve the window ID from
the target before calling resize-window, which requires a window target.
Pass the resolved target (not session name) to WakePaneIfDetached so
multi-window sessions wake the correct window.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@github-actions github-actions bot added the status/needs-triage Inbox — we haven't looked at it yet label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/needs-triage Inbox — we haven't looked at it yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant