Skip to content

Add macOS support and fix agent focus (pane_id) - #1

Open
jonasjeeliasson wants to merge 2 commits into
martin-ro:mainfrom
jonasjeeliasson:patch-1
Open

jonasjeeliasson wants to merge 2 commits into
martin-ro:mainfrom
jonasjeeliasson:patch-1

Conversation

@jonasjeeliasson

@jonasjeeliasson jonasjeeliasson commented Jul 24, 2026

Copy link
Copy Markdown

Two changes to make the plugin work on macOS.

1. macOS support

herdr-plugin.toml was platforms = ["linux"], so herdr refused the action on macOS with platform_unsupported. The action is pure Python stdlib and runs fine cross-platform, so this adds "macos".

2. Fix agent focus — use pane_id, not terminal_id

herdr agent focus resolves its <target> against pane_id (e.g. w3:p1). The plugin passed terminal_id (a distinct term_* field that coexists with pane_id in agent list), which fails with:

agent target term_… not found  (code: agent_not_found)

So on current herdr, every jump errored (exit 1) and no focus change happened. This switches the focus call to pane_id, and also uses pane_id for the sort tiebreak so the field is used consistently — which additionally makes the cycle order stable and spatial (w3:p1 before w3:pT) instead of keyed on an opaque terminal hash.

Testing

Verified on macOS + herdr 0.7.5 (Ghostty): repeated invocations cycle through panes in priority order, exit 0, no agent_not_found.

jonasjeeliasson and others added 2 commits July 24, 2026 20:36
herdr's `agent focus` resolves its target against pane_id; passing the
terminal_id (a distinct term_* field) fails with agent_not_found, so
every jump errored (exit 1). Switch the focus call to pane_id, and use
pane_id for the sort tiebreak too so the field is used consistently
(also gives stable, spatial cycle ordering).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonasjeeliasson jonasjeeliasson changed the title Add macOS to supported platforms Add macOS support and fix agent focus (pane_id) Jul 24, 2026
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