Skip to content

fix: honest jump notices for tabs and dead tmux sessions - #8

Merged
darkstardevx merged 1 commit into
mainfrom
fix/honest-jump
Nov 27, 2026
Merged

darkstardevx merged 1 commit into
mainfrom
fix/honest-jump

Conversation

@darkstardevx

Copy link
Copy Markdown
Contributor

Found on the owner's machine: pressing Enter on an agent did nothing visible.

Root cause

  • Claude lanes:
    • Both Claude agents ran in tabs of the same Ghostty window as Runeway.
    • The jump focused that window, which was already focused, and claimed "jumped to the agent's window".
    • No window manager can switch a terminal's tabs, and Ghostty offers no outside way to.
  • Gemini lane:
    • agent-deck still listed its tmux session, but no tmux server was running.
    • Runeway offered a tmux attach command that could not work.

What changes

  • Same window: jump::plan also works out the window Runeway itself runs in. When the agent's window is the same one, the result is a new SameWindow plan, and the notice names the agent's terminal: "raven is in another tab of this window (pts/1); tabs can't be switched from outside, use your tab keys".
  • Dead tmux sessions: before switching to or hinting at a tmux session, Runeway checks it with tmux has-session -t =name (2 s limit). A missing session is reported: "tmux session … isn't running; start the agent again (agent-deck)".
  • README: jumping needs each agent in its own window, or in tmux.

Verification

  • New tests, each failing first:
    • agent_in_another_tab_of_our_window_is_same_window
    • agent_in_its_own_window_still_focuses
    • tty_names_follow_linux_numbering (both Linux encodings of pts numbers)
    • same_window_says_which_tab
    • dead_tmux_session_is_reported
  • fmt, clippy -D warnings and the full suite pass.
  • Owner's machine, in a pty with the same key presses:
    • The Gemini lane now reports the dead tmux session.
    • The Claude lane reports the tab (pts/1).

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Found on the owner's machine: Enter did nothing visible.

- Both Claude agents ran in tabs of the same Ghostty window as
  Runeway. The jump focused that window (already focused) and said
  "jumped to the agent's window". Runeway now works out its own window
  too: when the agent's window is the same one, it says the agent is
  in another tab and names its terminal (pts/N). No window manager can
  switch a terminal's tabs, and Ghostty offers no outside way to.
- Gemini's agent-deck tmux session no longer existed (no tmux server),
  yet Runeway offered `tmux attach`. It now checks the session with
  `tmux has-session -t =name` first and says when it isn't running.

Tests: agent_in_another_tab_of_our_window_is_same_window,
agent_in_its_own_window_still_focuses, tty_names_follow_linux_numbering,
same_window_says_which_tab, dead_tmux_session_is_reported. Checked in
a pty on the owner's machine: both notices appear as described.

Project contributor

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darkstardevx
darkstardevx merged commit b6ef962 into main Nov 27, 2026
2 checks passed
@darkstardevx
darkstardevx deleted the fix/honest-jump branch November 27, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant