Skip to content

fix: qualify pane ID with session name in FindAgentPane verification#3503

Open
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:fix/nudge-pane-qualification
Open

fix: qualify pane ID with session name in FindAgentPane verification#3503
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:fix/nudge-pane-qualification

Conversation

@ckumar1
Copy link
Copy Markdown
Contributor

@ckumar1 ckumar1 commented Apr 2, 2026

Summary

FindAgentPane and NudgeSessionWithOpts qualify pane IDs with the session name to avoid ambiguity in multi-session environments. The existing code used session:%N syntax (e.g., hq-dog-alpha:%22), but tmux send-keys interprets this as a window reference, failing with "can't find window: %22".

The correct tmux target syntax for panes is session:.%N (note the dot), which tells tmux to look up a pane rather than a window.

display-message accepts both forms, which masked the bug — FindAgentPane's verification via display-message passed, but the subsequent send-keys delivery failed.

What changed

  • internal/tmux/tmux.go: Changed pane qualification from session + ":" + pane to session + ":." + pane in both NudgeSessionWithOpts (delivery) and FindAgentPane (verification)

Reproduction

$ tmux send-keys -t "session:%22" ""
can't find window: %22

$ tmux send-keys -t "session:.%22" ""
(success)

Test plan

  • go build ./cmd/gt passes
  • go vet ./internal/tmux/ clean
  • TestFindAgentPane_* tests pass
  • Manual: gt nudge succeeds for target with pane ID %22

@github-actions github-actions bot added the status/needs-triage Inbox — we haven't looked at it yet label Apr 2, 2026
FindAgentPane and NudgeSessionWithOpts qualified pane IDs using
"session:%N" syntax, but tmux send-keys interprets this as a window
reference, failing with "can't find window: %N". The correct syntax
is "session:.%N" where the dot indicates a pane target.

display-message accepts both forms (which masked the bug in
FindAgentPane verification), but send-keys does not.

Confirmed:
  send-keys -t "session:%22"  → "can't find window: %22"
  send-keys -t "session:.%22" → success

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

Executed-By: gastown/crew/woodhouse
@ckumar1 ckumar1 force-pushed the fix/nudge-pane-qualification branch from c9da7f0 to 199d904 Compare April 2, 2026 08:33
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