Repository navigation
feat(trust): share folder trust as it's given and resume herdr panes on their seat - #18
Merged
Merged
Conversation
…on their seat Trusting a folder in one Claude seat no longer waits for seats sync. A SessionStart and Stop hook (seats hook session), added to the shared settings.json by sync, switching and seats add, carries it to the other seats right away, and every launch through seats pulls the other seats' trust into the seat first. Seats with Claude open are left for their next launch. seats exclude <seat> trust lets a seat keep its own. The new herdr plugin in plugins/herdr makes herdr reopen a Claude pane after a restart with seats run claude:<seat> --resume <id>, on the seat that has the conversation, instead of the active one. The Paseo plugin moved from integrations/paseo to plugins/paseo.
The herdr plugin now covers Codex as well as Claude Code. A restored Codex pane reopens with seats run codex:<seat> resume <id> on the seat whose sessions/ or archived_sessions/ holds that rollout, instead of codex resume on the active seat. seats only finds Codex conversations by file name: seats sessions and seats move stay Claude-only.
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Trusting a folder in one Claude seat only reached the other seats on
seats syncor activation, so opening another seat showed Claude Code's trust prompt again. And herdr restored Claude Code and Codex panes withclaude --resume <id>/codex resume <id>, which open the active seat (~/.claude,~/.codex) instead of the one the conversation ran on.seats hook sessionruns from aSessionStartand aStophook (Stop because.claude.jsonmay not be written yet at SessionStart) and merges the current seat's trust into the other seats. It never rewrites the current seat's.claude.json, and skips seats that keep their own trust and seats with Claude open (byCLAUDE_CONFIG_DIR, or plainclaudeon~/.claude). It prints nothing, reads and ignores stdin, and always exits 0. The registered command iscommand -v seats >/dev/null 2>&1 && seats hook session || true, so a Claude that can't seeseatson its PATH never shows a hook error.supervise()merges the other seats' trust into the seat just before each spawn, which coversseats run, the picker,seats move, auto-switch and herdr restores. Seats skipped by the hook catch up there. It never fails a launch.seats sync, activation andseats addadd both entries to the shared Claudesettings.json(created and linked when no seat has one), next to existing hooks, recognised by their command so they're never duplicated;--dry-runreports it. The limit hook stays in--settingsfor supervised launches only. A seat that excludessettings.jsondoesn't get the hook (documented).seats exclude/include <seat> trust. A seat that keeps its own trust neither gives nor gets the per-folder half of.claude.json(trust flags,allowedTools,.mcp.jsonapprovals), on sync, launch or from the hook; user MCP servers still merge. Stored asownTrustinconfig.json. Exclusion is per seat, not per folder. Only for Claude; other tools get an error pointing at their shared trust file.mergeSeatstakes options:keptOut,ownTrustandtargets(reads every seat, writes only the targets).plugins/herdr). Onpane.agent_detectedandpane.agent_status_changedit runsseats hook herdr, which reads the pane's session id, finds the seat that has the conversation (newest copy wins, e.g. afterseats moveor auto-switch) and runsherdr pane report-agent-session <pane> --source seats --agent <claude|codex> -- seats run <tool>:<seat> <resume args>. It's a plugin reporting a resume command because herdr'sherdr:claudeandherdr:codexintegrations are session-only: a report from sourceseatsis accepted once herdr sees the agent in the pane, survives later session reports, and takes precedence at restore. Already-reported commands aren't sent twice (state underHERDR_PLUGIN_STATE_DIR).projects/*/<id>.jsonl→seats run claude:<seat> --resume <id>.sessions/YYYY/MM/DD/rollout-<time>-<id>.jsonlorarchived_sessions/(id matched exactly from the file name) →seats run codex:<seat> resume <id>.SeatSource.sessions.listis now optional, and Codex only hasfind, soseats sessionsandseats movestay Claude-only (copying a Codex conversation to another account isn't confirmed to resume).--resume <id>/resume <id>, read back by a newsessions.resumedId) on a seat already at its limit used to switch to the next seat with the same args, where that conversation doesn't exist. It now copies the conversation there first (sessions.find+copyTranscript, as the mid-session switch does). When it can't (not found, or a source withoutfailover, i.e. Codex), it stays on the named seat and says it's at its limit. This matters for the herdr plugin andseats move's "open now", which both launchseats run <tool>:<seat> --resume <id>.integrations/renamed toplugins/, soplugins/paseoandplugins/herdrlive together. Paseo users linked tointegrations/paseomust update the path.seats-e2esession with a throwawayHOME, once per tool: a fakeclaude/codexin the pane was detected, the session was reported asherdr:claude/herdr:codexwould,seats hook herdrran, and the savedsession.jsonheldagent_resume: {source: "seats", argv: ["seats","run","claude:b","--resume","<uuid>"]}and{source: "seats", argv: ["seats","run","codex:b","resume","<uuid>"]}.User-facing changes
BEGIN_COMMIT_OVERRIDE
feat(trust): a folder trusted in one Claude seat is trusted in every seat right away, with
seats exclude <seat> trustfor a seat that keeps its ownfeat(herdr): a herdr plugin reopens restored Claude Code and Codex panes on the seat their conversation ran on
END_COMMIT_OVERRIDE
Type of change
Checklist
bun run checkpasses (Biome lint and format, typecheck, tests)bun src/cli.ts helpruns without errors--dry-runor a throwawayHOMEsrc/providers/<id>/and is listed insrc/providers/index.ts