Skip to content

fix: phase 3 follow-ups (jump timeouts, exact tmux, OpenCode status) - #5

Merged
darkstardevx merged 4 commits into
mainfrom
fix/phase3-followups
Nov 27, 2026
Merged

darkstardevx merged 4 commits into
mainfrom
fix/phase3-followups

Conversation

@darkstardevx

Copy link
Copy Markdown
Contributor

The minor follow-ups listed in #4. Each fix got a test that failed first.

What changes

  • ⏱️ Jumps never freeze the screen.
    • tmux and hyprctl now run with a 2 s limit.
    • Their output is read on separate threads while waiting, so a large answer (hyprctl clients -j with many windows) can't stall them.
    • Hyprland's window list is only asked for when a jump needs it, not for tmux jumps.
  • 🎯 Exact tmux target. tmux switch-client -t =name no longer falls back to a prefix or pattern match.
  • 💬 Clearer errors. When both Hyprland focus forms fail, the notice shows the Lua dispatch's error, which says more on Hyprland 0.57+.
  • 🔗 Symlinked folders. The folder match behind a Codex or OpenCode jump resolves symlinks and trailing slashes.
  • 🛸 OpenCode:
    • A session still marked busy counts as running only if it changed in the last minute, so a crash no longer leaves it running for 10 minutes.
    • Suspended sessions are left out.
    • One database connection per poll for all OpenCode lanes, instead of one per lane.
  • 🩺 runeway check says opencode error: for a database that exists but can't be read, and missing: only when the file is absent.
  • 📖 README:
    • how an OpenCode lane decides it is running
    • that an agent started in your own tmux leads to the tmux server, so the jump says no window was found

Verification

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test all pass (154 lib + 31 bin + 13 CLI + 4 originality tests).
  • New tests:
    • jumper: tmux_target_is_exact, both_focus_forms_failing_reports_the_lua_error, run_with_timeout_gives_up and run_with_timeout_reads_large_output
    • jump: only_non_tmux_jumps_need_windows and folder_reached_through_a_symlink_or_trailing_slash_matches
    • opencode: suspended_session_is_skipped, busy_but_quiet_session_is_idle and one_reader_answers_several_sessions
    • CLI: check_says_missing_for_an_absent_opencode_db and check_says_error_for_a_broken_opencode_db
  • Owner's machine:
    • In a pty, Enter focused a Claude window and showed the tmux attach command for the agent-deck lane.
    • check reads the real opencode.db.

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

darkstardevx and others added 4 commits November 27, 2026 11:50
- tmux and hyprctl now run with a 2 s limit, reading their output on
  separate threads so a large answer cannot stall them. A stuck window
  manager can no longer freeze Runeway.
- Hyprland's window list is only asked for when a jump needs it, not
  for tmux jumps.
- `tmux switch-client -t =name` matches the session name exactly
  instead of falling back to a prefix or pattern match.
- When both Hyprland focus forms fail, the notice shows the Lua
  dispatch's error, which says more on Hyprland 0.57+.

Project contributor

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The folder comparison behind a Codex or OpenCode jump now resolves
symlinks and trailing slashes on both sides, so ~/w/link and
~/w/real/ match the agent's working directory ~/w/real.

Project contributor

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A session OpenCode still marks busy counts as running only if it was
  updated in the last minute. After a crash it now sits down instead
  of running for the whole 10-minute window.
- Suspended sessions are left out, like archived ones.
- The collector opens OpenCode's database once per poll for all its
  OpenCode lanes (OpenCodeDb::reader), instead of once per lane.

Project contributor

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- `runeway check` prints "opencode error: …" when the database exists
  but cannot be read (locked, unexpected schema, not a database), and
  keeps "missing" for an absent file.
- README: how an OpenCode lane decides it is running, and that an
  agent started inside your own tmux leads to the tmux server, so the
  jump reports no window instead of focusing one.

Project contributor

👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darkstardevx
darkstardevx merged commit 1cbcd06 into main Nov 27, 2026
2 checks passed
@darkstardevx
darkstardevx deleted the fix/phase3-followups branch November 27, 2026 20:05
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