Skip to content

feat: add Herdr pane focus support - #323

Merged
wxtsky merged 1 commit into
wxtsky:mainfrom
erikh3:feat/herdr-terminal-focus
Sep 1, 2026
Merged

wxtsky merged 1 commit into
wxtsky:mainfrom
erikh3:feat/herdr-terminal-focus

Conversation

@erikh3

@erikh3 erikh3 commented Aug 23, 2026 •

Copy link
Copy Markdown

Summary

  • preserve Herdr pane, socket, and executable identity across local agent hooks and app restarts
  • focus the exact live Herdr agent pane before safely raising its hosting terminal
  • use exact Herdr focus for jump validation and smart suppression
  • retain existing terminal activation when Herdr routing is unavailable or stale

Implements #239.

Review hints

Herdr routing requires both pane and socket identity. Nested multiplexers, remote Herdr sessions, and exact outer-terminal tab selection remain out of scope.

AI assistance

Code was generated with AI assistance and reviewed manually by me.

@erikh3
erikh3 marked this pull request as ready for review August 23, 2026 20:32
nguyenvanduocit pushed a commit to nguyenvanduocit/CodeIsland that referenced this pull request Aug 24, 2026
wxtsky/CodeIsland upstream quiet 9 days since v1.0.32. One new watch item:
PR wxtsky#323 adds Herdr terminal multiplexer pane-jump support (previously skipped
when it was only a feature request; now has upstream implementation).
PR wxtsky#322 (L10n) and issue wxtsky#321 (T3 Code, non-Claude) skipped.
vibe-island issue wxtsky#222 (usage bar / setup token) doesn't apply to our
JSONL-based T-073 approach.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RqePFDgLooq914ZoBaf8WV
nguyenvanduocit pushed a commit to nguyenvanduocit/CodeIsland that referenced this pull request Aug 29, 2026
…1.0.32)

No new commits on wxtsky/CodeIsland or vibeislandapp/vibe-island since
Aug 26. Issues wxtsky#327 (Qoder) and wxtsky#328 (Codex) are non-Claude CLI specific.
PRs wxtsky#314, wxtsky#323, wxtsky#325, wxtsky#326 remain open and watching. No actionable items.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T4KU8w1bHuFtRzeNAvW1bn
@wxtsky
wxtsky merged commit 00582ff into wxtsky:main Sep 1, 2026
wxtsky added a commit that referenced this pull request Sep 1, 2026
#323 and #326 landed within the hour and disagreed about what a
multiplexer does to the badge.

#326's rule is that the chip augments the terminal name and never
replaces it — a CLI under tmux inside iTerm2 reads "iTerm2 · tmux",
because you still want to know which terminal to look for. #323 made
`terminalName` return "Herdr" instead, so the same session in a Herdr
pane lost its host terminal entirely.

Herdr nests inside a terminal exactly the way tmux and zellij do, so it
belongs on the same side of that rule: `terminalName` keeps naming
Ghostty, `multiplexerLabel` names herdr.

Ordering follows `HerdrController.shouldRoute`, which already prefers a
tmux/zellij pane over the Herdr route: whatever the CLI actually sits in
is what the badge names and what a click jumps to. Extracted the
complete-pair check as `hasHerdrRoute` so the badge and the routing
identity cannot drift apart — half a route (pane without socket) would
aim at Herdr's default server, so it counts as no route at all.

Also routes `TerminalVisibilityDetector` through `shouldRoute` rather
than `identity(from:)`. The two agreed only because the zellij and tmux
checks happen to sit above it; making the predicate explicit means
jump validation can't start asking Herdr about a jump that was handed
to tmux.
nguyenvanduocit pushed a commit to nguyenvanduocit/CodeIsland that referenced this pull request Sep 2, 2026
…88 to Todo

v1.0.33 released Sep 1, 2026. Three watched PRs merged:
- PR wxtsky#325 → T-088 gate cleared (question-card click-to-jump)
- PR wxtsky#326 → T-087 gate cleared (multiplexer badge chip)
- PR wxtsky#323 → T-086 gate cleared (Herdr pane-jump)

Also adds Sep 1 scout entry (upstream quiet, no changes).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DUc3EnTaiuJxwGonqaNwk3
@erikh3
erikh3 deleted the feat/herdr-terminal-focus branch September 2, 2026 21:16
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.

2 participants