Repository navigation
Conversation
…read Claude Code 2.1.293 marks the slash-command popup's selected entry with the composer's own glyph, directly below the composer's closing rule. The cursorless selection read that entry as a lower live composer, so every popup row joined the composer content and the Herdr pre-Enter payload proof refused a typed /exit, cleared it, and reported send-failed. fm-control exit and relaunch then refused every Claude worker on Herdr. The shared composer classifier now recognizes the popup as one command table under an envelope holding a slash draft and treats it as that envelope's footer furniture, so the proof reads only the composer's own row. Free text keeps the strict equality proof, a partial command under a popup that selects another command is still refused, and any row that breaks the table keeps the old reading. Verdicts are unchanged because the envelope holds a non-empty slash draft. Adds a real Claude 2.1.293 popup capture, portable regressions, and lets the live Herdr guard accept an auto-mode permission footer.
…vidence ownership
0x7067
added a commit
to 0x7067/firstmate
that referenced
this pull request
Oct 8, 2026
This was referenced Oct 10, 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.
Intent
Fix: Claude slash-command exit cannot be confirmed on herdr because Claude's slash-command popup joins the composer content.
Verified 2026-10-07 on Claude Code 2.1.292 with the herdr backend:
fm-controlexit/relaunch of a live Claude secondmate fails with "the exit command could not be sent".Cause: in
bin/backends/herdr.sh,fm_backend_herdr_send_text_submit's Claude proof requiresfm_backend_herdr_composer_payload_shownto equal the typed text.Typing
/exitopens Claude's slash-command popup, andfm_backend_herdr_composer_content(fm_composer_extract_selected_contentover the full visible viewport) returns the popup rows too, for example/exit Exit the CLI /nextjs-on-cloudflare ... /quiet Enter quiet supervision mode....The equality proof fails, the core clears the composer and reports send-failed, so
fm-controlrefuses and/updatefirstmate's restart step reports every Claude mate unreached.Impact: every instruction-update restart of a Claude secondmate fails (today it left 3 of 4 Claude secondmates unreached during a restart), and the same path blocks interrupt/exit/relaunch for any Claude worker, including
fm-controlexit/relaunch andfm-secondmate-restart.Fix direction: for a slash-command payload, prove the composer's own leading command token (or exclude the popup rows from the composer read) while keeping the strict equality proof for free text.
Add a Claude 2.1.29x slash-command popup fixture, and reproduce the failure end to end first in an isolated Herdr lab.
Deliver as an upstream PR to kunchenguid/firstmate, like the previous two firstmate fixes; it will not be merged by us.
What Changed
/exit, while preserving strict payload equality.Risk Assessment
✅ Low: The bounded popup recognition preserves strict payload equality and existing refusal paths, with behavioral regressions and documented isolated-lab reproduction supporting the intended fix.
Testing
Live Claude checks reproduced and resolved the exit failure while preserving mismatch refusals. Composer tests and focused backend cases passed; the broader backend file encountered an unrelated environment restriction. Rendered popup evidence was captured, and disposable labs and files were cleaned up.
Evidence: Live baseline reproduction, adversarial checks, and fixed exit
Source: Live baseline reproduction, adversarial checks, and fixed exit
Evidence: Rendered live Claude exit popup
Source: Rendered live Claude exit popup
Evidence: Rendered live partial-command popup
Source: Rendered live partial-command popup
Evidence: Reproduction driver
Source: Reproduction driver
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
TMPDIR="$PWD/.test-tmp" tests/fm-composer-lib.test.sh— passed.TMPDIR="$PWD/.test-tmp" tests/fm-backend-herdr.test.sh— stopped at an unrelated process probe rejected by the execution environment.Executed four focused Herdr behavioral cases covering the new popup, partial-command refusal, truncated free text, and nonempty composer refusal — passed.FM_HERDR_SUBMIT_CONFIRM_LIVE=1 tests/fm-herdr-submit-confirm-live-e2e.test.shwith an isolated marked FM_HOME and guarded Herdr lab — passed.Ran the captured live-popup driver against real Claude, comparing base composer code with the fix and exercising partial-command and free-text mismatches — passed.Rendered live ANSI captures as HTML; confirmed lab teardown and removed transient worktree files.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.