Skip to content

fix: confirm Claude slash-command exit on Herdr - #6813

Open
0x7067 wants to merge 2 commits into
kunchenguid:mainfrom
0x7067:fm/fm-claude-slash-exit-proof
Open

0x7067 wants to merge 2 commits into
kunchenguid:mainfrom
0x7067:fm/fm-claude-slash-exit-proof

Conversation

@0x7067

@0x7067 0x7067 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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-control exit/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 requires fm_backend_herdr_composer_payload_shown to equal the typed text.
Typing /exit opens Claude's slash-command popup, and fm_backend_herdr_composer_content (fm_composer_extract_selected_content over 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-control refuses 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-control exit/relaunch and fm-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

  • Exclude recognized Claude slash-command popup rows from composer content so Herdr can prove and submit /exit, while preserving strict payload equality.
  • Add a Claude Code 2.1.293 capture and regression coverage for popup extraction, successful submission, partial-command refusal, and unrecognized popup shapes.
  • Update the live Herdr guard to recognize the auto-mode footer and document the isolated lab’s before/after exit reproduction.

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.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Submit /exit behind Claude’s slash-command popup and confirm Claude stops ✅ pass live live-popup-proof.log: base includes popup rows, returns send-failed, and retains the live agent; fixed content is /exit and Claude exits.
Type a partial slash command and prevent the selected popup command from becoming payload proof ✅ pass live live-popup-proof.log and partial-popup.html: /exi remains pending and cannot prove /exit despite the popup selection.
Present incomplete free text and retain strict payload equality ✅ pass live live-popup-proof.log: ONLY_SUFFIX cannot prove MISSING_HEAD ONLY_SUFFIX.
Submit ordinary and operational messages and observe Claude’s requested replies ✅ pass live live-submit.log and live-popup-proof.log: ordinary and U+2063-marked messages render their requested replies.
Evidence: Live baseline reproduction, adversarial checks, and fixed exit

Source: Live baseline reproduction, adversarial checks, and fixed exit

ok - live Herdr submit confirm: Claude Code (2.1.293 (Claude Code)) on herdr 0.9.3 reports empty and renders the requested reply in isolated session fm-lab-herdr-submit-con-794300-5441
ok - live Herdr submit confirm: Claude Code (2.1.293 (Claude Code)) on herdr 0.9.3 submits a U+2063 away-supervisor payload whose read-back drops the mark
Partial command composer content: </exit Exit the CLI /afk Enter the away posture when the captain invokes /afk, says they are going afk, `state/.afk-contract` or `state/.afk` exists, an i… /quiet Enter quiet supervision mode when the captain invokes /quiet or asks for quiet mode, quiet-while-present, or fewer routine wake t… /verify Verify that a code change actually does what it's supposed to by exercising it end-to-end and observing behavior — drive the affec… /claude-in-chrome Automates your Chrome browser to interact with web pages - clicking elements, filling forms, capturing screenshots, reading … /pptx Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide de… /skill-creator Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scr… /xlsx Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, … …ai Ravn Catelejo:content_opportunities (MCP) Rank content opportunities from the Content Machine: high-priority signals that have not been written about yet, checked against exi…>
ok - live partial /exi remains pending and cannot prove /exit from popup selection
Free-text composer content: <ONLY_SUFFIX>
ok - live free-text mismatch retains strict equality refusal
Base composer content: </exit Exit the CLI /context Visualize current context usage as a colored grid /usage-credits Configure usage credits or request them from your admin when you hit a limit /ravn-core:principle-guard-the-context-window (ravn-core) Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents;… /quiet Enter quiet supervision mode when the captain invokes /quiet or asks for quiet mode, quiet-while-present, or fewer routine wake t…>
Fixed composer content: </exit>
Base /exit submission verdict: send-failed
ok - base code refuses and clears /exit while Claude remains running
ok - live Herdr submit confirm: Claude Code (2.1.293 (Claude Code)) on herdr 0.9.3 proves and submits a typed /exit behind its command popup
Evidence: Rendered live Claude exit popup

Source: Rendered live Claude exit popup

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Live Claude Code 2.1.293: exit-popup</title>
<style type="text/css">
.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.inv_foreground { color: #000000; }
.inv_background { background-color: #AAAAAA; }
</style>
</head>
<body class="body_foreground body_background" style="font-size: normal;" >
<pre class="ansi2html-content">
❯ Reply with exactly FMHERDRPONG794256_23520 and nothing else.

  Thought for 2s (ctrl+o to expand)

● FMHERDRPONG794256_23520

✻ Cooked for 4s · done 10:12 PM

❯ FIRSTMATE_OP: v1 away-supervisor: Reply with exactly FMHERDROPPONG794256_24106 and nothing else.

  Thought for 3s (ctrl+o to expand)

● FMHERDROPPONG794256_24106

✻ Sautéed for 7s · done 10:12 PM

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ /exit
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ❯ /exit                                          Exit the CLI
    /context                                       Visualize current context usage as a colored grid
    /usage-credits                                 Configure usage credits or request them from your admin when you
                                                   hit a limit
    /ravn-core:principle-guard-the-context-window  (ravn-core) Apply when context is filling up: large outputs, long
                                                   files, repeated reads, fan-out planning. Route bulk to subagents;…
    /quiet                                         Enter quiet supervision mode when the captain invokes /quiet or
                                                   asks for quiet mode, quiet-while-present, or fewer routine wake t…
</pre>
</body>

</html>
Evidence: Rendered live partial-command popup

Source: Rendered live partial-command popup

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Live Claude Code 2.1.293: partial-popup</title>
<style type="text/css">
.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.inv_foreground { color: #000000; }
.inv_background { background-color: #AAAAAA; }
</style>
</head>
<body class="body_foreground body_background" style="font-size: normal;" >
<pre class="ansi2html-content">
❯ Reply with exactly FMHERDRPONG794256_23520 and nothing else.

  Thought for 2s (ctrl+o to expand)

● FMHERDRPONG794256_23520

✻ Cooked for 4s · done 10:12 PM

❯ FIRSTMATE_OP: v1 away-supervisor: Reply with exactly FMHERDROPPONG794256_24106 and nothing else.

  Thought for 3s (ctrl+o to expand)
  
● FMHERDROPPONG794256_24106
  
✻ Sautéed for 7s · done 10:12 PM
  
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ /exi
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ❯ /exit                                          Exit the CLI                                    
    /afk                                           Enter the away posture when the captain invokes /afk, says they
                                                   are going afk, `state/.afk-contract` or `state/.afk` exists, an i…
    /quiet                                         Enter quiet supervision mode when the captain invokes /quiet or
                                                   asks for quiet mode, quiet-while-present, or fewer routine wake t…
    /verify                                        Verify that a code change actually does what it's supposed to by
                                                   exercising it end-to-end and observing behavior — drive the affec…
    /claude-in-chrome                              Automates your Chrome browser to interact with web pages -
                                                   clicking elements, filling forms, capturing screenshots, reading …
    /pptx                                          Use this skill any time a .pptx or .potx file is involved in any
                                                   way — as input, output, or both. This includes: creating slide de…
    /skill-creator                                 Create new skills, modify and improve existing skills, and measure
                                                   skill performance. Use when users want to create a skill from scr…
    /xlsx                                          Use this skill any time a spreadsheet file is the primary input or
                                                   output. This means any task where the user wants to: open, read, …
    …ai Ravn Catelejo:content_opportunities (MCP)  Rank content opportunities from the Content Machine: high-priority
                                                   signals that have not been written about yet, checked against exi…
</pre>
</body>

</html>
Evidence: Reproduction driver

Source: Reproduction driver

#!/usr/bin/env bash
# Live Herdr submit-confirmation guard (live-harness-optin family).
#
# Herdr's native agent_status can stay idle for a whole landed Claude turn, and
# a busy-queued Enter can keep proven pending text visible. A stub cannot prove
# either signal. This guard launches real Claude Code in an isolated Herdr lab
# and requires fm_backend_herdr_send_text_submit to report empty for a landed
# idle steer. It then requires the same submit path to prove and submit a
# typed /exit slash command behind the command popup Claude renders below the
# composer (the fm-control exit breakage on 2.1.283) and verifies the agent
# actually exited. It fails naming the harness and version rather than
# degrading quietly.
#
# Run explicitly with FM_HERDR_SUBMIT_CONFIRM_LIVE=1 after a Herdr or Claude
# upgrade, and before trusting a refreshed docs/verification/runtime-backends.md
# "Herdr submit confirmation" entry.
# Every Herdr call, including adapter calls, is routed through bin/fm-herdr-lab.sh.
set -u

# shellcheck source=tests/lib.sh
. "$(dirname "${BASH_SOURCE[0]}")/lib.sh"

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
LAB_HELPER=${HERDR_LAB_HELPER:-$ROOT/bin/fm-herdr-lab.sh}

fail() { printf 'not ok - %s\n' "$1" >&2; exit 1; }
pass() { printf 'ok - %s\n' "$1"; }

fm_live_gate opt-in FM_HERDR_SUBMIT_CONFIRM_LIVE herdr jq claude

[ -x "$LAB_HELPER" ] || fail "FM_HERDR_SUBMIT_CONFIRM_LIVE=1 but the Herdr lab helper is not executable at $LAB_HELPER"

# shellcheck source=tests/herdr-test-safety.sh
. "$ROOT/tests/herdr-test-safety.sh"
herdr_forget_inherited_pane

ORIGINAL_PATH=$PATH
SESSION=$("$LAB_HELPER" name herdr-submit-confirm-live)
TMP_ROOT=$(mktemp -d "$(cd "${TMPDIR:-/tmp}" && pwd -P)/fm-herdr-submit-confirm-live.XXXXXX")
FAKEBIN="$TMP_ROOT/fakebin"
mkdir -p "$FAKEBIN"
CHECKED=0

cleanup() {
  local rc=$?
  trap - EXIT
  if ! PATH="$ORIGINAL_PATH" "$LAB_HELPER" teardown "$SESSION"; then
    rc=1
  fi
  rm -rf "$TMP_ROOT"
  exit "$rc"
}
trap cleanup EXIT

cat > "$FAKEBIN/herdr" <<EOF
#!/usr/bin/env bash
set -u
args=("\$@")
n=\${#args[@]}
if [ "\$n" -ge 2 ] && [ "\${args[\$((n-2))]}" = --session ]; then
  [ "\${args[\$((n-1))]}" = "$SESSION" ] || { echo "wrapper refused foreign session" >&2; exit 97; }
  args=("\${args[@]:0:\$((n-2))}")
else
  echo "wrapper requires trailing --session $SESSION" >&2
  exit 98
fi
exec env PATH="$ORIGINAL_PATH" "$LAB_HELPER" run "$SESSION" "\${args[@]}"
EOF
chmod +x "$FAKEBIN/herdr"

"$LAB_HELPER" provision "$SESSION" || fail "could not provision the isolated Herdr lab"
export PATH="$FAKEBIN:$ORIGINAL_PATH"

# shellcheck source=/dev/null
. "$ROOT/bin/backends/herdr.sh"

lab() { env PATH="$ORIGINAL_PATH" "$LAB_HELPER" run "$SESSION" "$@"; }
WS_JSON=$(lab workspace create --cwd "$ROOT" --label fm-submitlive --no-focus) \
  || fail "could not create the isolated submit-confirm workspace"
PANE=$(printf '%s' "$WS_JSON" | jq -er '.result.root_pane.pane_id') \
  || fail "workspace create did not return a pane id"
TARGET="$SESSION:$PANE"
VERSION=$(PATH="$ORIGINAL_PATH" claude --version 2>/dev/null | head -1 || printf 'version-unknown')
HERDR_VER=$(PATH="$ORIGINAL_PATH" herdr --version 2>/dev/null | head -1 || printf 'herdr-unknown')

lab pane run "$PANE" "CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false CLAUDE_CODE_SEND_FEEDBACK=0 claude --dangerously-skip-permissions --settings '{\"feedbackDrafts\":\"off\"}'" >/dev/null \
  || fail "could not launch Claude Code ($VERSION) in the isolated Herdr pane"

idle=0
trusted=0
i=0
while [ "$i" -lt 60 ]; do
  screen=$(lab pane read "$PANE" --source visible 2>/dev/null || true)
  case "$screen" in
    *'bypass permissions on'*|*'auto mode on'*)
      # The composer footer means Claude is past any folder-trust prompt; a
      # user settings default mode can replace the bypass footer. Herdr
      # can report the agent idle while that prompt is still up, so the wait
      # keys off the rendered composer rather than the native status alone.
      st=$(lab agent get "$PANE" 2>/dev/null | jq -r '.result.agent.agent_status // empty')
      case "$st" in idle|done) idle=1; break ;; esac
      ;;
    *'Yes, I trust this folder'*)
      # A fresh checkout path stops on Claude's folder-trust prompt, which the
      # pre-send proof would read as a non-empty composer. Accept it once and
      # keep waiting for a real idle composer; the accepted dialog stays in the
      # viewport. The prompt preselects "No, exit", so move to "Yes" before
      # confirming; a bare Enter quits Claude.
      if [ "$trusted" = 0 ]; then
        trusted=1
        lab pane send-keys "$PANE" down enter >/dev/null \
          || fail "could not accept Claude's folder-trust prompt"
      fi
      ;;
  esac
  i=$((i + 1))
  sleep 1
done
[ "$idle" = 1 ] || fail "Claude Code ($VERSION) on $HERDR_VER never rendered an idle composer in the lab pane"

TOKEN="FMHERDRPONG$$_$RANDOM"
verdict=$(fm_backend_herdr_send_text_submit "$TARGET" "Reply with exactly $TOKEN and nothing else." 3 0.4 0.4) \
  || fail "send_text_submit failed to run against Claude Code ($VERSION) on $HERDR_VER"
CHECKED=1
[ "$verdict" = empty ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: a landed idle steer must confirm empty, got '$verdict'"

# Confirm the instruction reached Claude, not merely that the composer cleared.
# The token occurs once in the submitted prompt and once in Claude's reply.
landed=0
i=0
screen=''
while [ "$i" -lt 45 ]; do
  screen=$(lab pane read "$PANE" --source recent --lines 200 2>/dev/null || true)
  occurrences=$(printf '%s\n' "$screen" | grep -F -c "$TOKEN" || true)
  if [ "$occurrences" -ge 2 ]; then
    landed=1
    break
  fi
  i=$((i + 1))
  sleep 1
done
[ "$landed" = 1 ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: submit reported '$verdict' but the expected reply never rendered"
pass "live Herdr submit confirm: Claude Code ($VERSION) on $HERDR_VER reports empty and renders the requested reply in isolated session $SESSION"

# Away-mode digests start with U+2063, which Claude's composer read-back drops.
# The pre-Enter proof must still accept the rest of the payload.
# shellcheck source=bin/fm-operational-input.sh
. "$ROOT/bin/fm-operational-input.sh"
i=0
while [ "$i" -lt 45 ]; do
  st=$(lab agent get "$PANE" 2>/dev/null | jq -r '.result.agent.agent_status // empty')
  case "$st" in idle|done) break ;; esac
  i=$((i + 1))
  sleep 1
done
OP_TOKEN="FMHERDROPPONG$$_$RANDOM"
op_text=
fm_operational_input_encode away-supervisor "Reply with exactly $OP_TOKEN and nothing else." op_text \
  || fail "could not encode an away-supervisor payload"
verdict=$(fm_backend_herdr_send_text_submit "$TARGET" "$op_text" 3 0.4 0.4) \
  || fail "send_text_submit failed to run an operational payload against Claude Code ($VERSION) on $HERDR_VER"
[ "$verdict" = empty ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: a landed U+2063 operational payload must confirm empty, got '$verdict'"
landed=0
i=0
while [ "$i" -lt 45 ]; do
  screen=$(lab pane read "$PANE" --source recent --lines 200 2>/dev/null || true)
  occurrences=$(printf '%s\n' "$screen" | grep -F -c "$OP_TOKEN" || true)
  if [ "$occurrences" -ge 2 ]; then
    landed=1
    break
  fi
  i=$((i + 1))
  sleep 1
done
[ "$landed" = 1 ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: operational submit reported '$verdict' but the expected reply never rendered"
pass "live Herdr submit confirm: Claude Code ($VERSION) on $HERDR_VER submits a U+2063 away-supervisor payload whose read-back drops the mark"

# The fm-control exit regression: a typed slash command (/exit) makes Claude
# Code 2.1.283 render its command popup between the composer and the pane
# bottom, which pushed the composer above the old bounded proof read - the
# typed command was judged unsent, cleared, and never submitted. The viewport
# capture must prove the typed /exit and submit it; Claude must actually
# exit. Claude Code 2.1.293 also marks the popup's selected entry with the
# composer's own glyph, which the proof must not read as typed text.
# This scenario runs last because it ends the lab's Claude process.
i=0
while [ "$i" -lt 45 ]; do
  st=$(lab agent get "$PANE" 2>/dev/null | jq -r '.result.agent.agent_status // empty')
  case "$st" in idle|done) break ;; esac
  i=$((i + 1))
  sleep 1
done
# Live adversarial checks, captured before the exit that ends the process.
EVIDENCE=~/.no-mistakes/evidence/01M4C6KSMQRA5Z1X925Z39WZZ5
lab pane send-text "$PANE" '/exi' >/dev/null || fail 'could not type partial slash command'
sleep 1.2
partial=$(fm_backend_herdr_composer_content "$TARGET")
printf 'Partial command composer content: <%s>\n' "$partial"
: # Unknown popup shapes may keep the conservative full read; never borrow /exit.
if fm_backend_herdr_composer_payload_shown /exit "$partial"; then fail 'partial draft falsely proved /exit'; fi
[ "$(fm_backend_herdr_composer_state "$TARGET")" = pending ] || fail 'partial draft was not pending'
fm_backend_herdr_visible_capture_ansi "$TARGET" > "$EVIDENCE/partial-popup.ansi"
fm_backend_herdr_composer_clear "$TARGET" /exi || fail 'could not clear partial draft'
pass 'live partial /exi remains pending and cannot prove /exit from popup selection'
lab pane send-text "$PANE" 'ONLY_SUFFIX' >/dev/null || fail 'could not type free text'
sleep 1
literal=$(fm_backend_herdr_composer_content "$TARGET")
printf 'Free-text composer content: <%s>\n' "$literal"
if fm_backend_herdr_composer_payload_shown 'MISSING_HEAD ONLY_SUFFIX' "$literal"; then fail 'truncated free text falsely proved complete payload'; fi
fm_backend_herdr_composer_clear "$TARGET" ONLY_SUFFIX || fail 'could not clear free text'
pass 'live free-text mismatch retains strict equality refusal'
lab pane send-text "$PANE" '/exit' >/dev/null || fail 'could not type slash command'
sleep 1.2
fm_backend_herdr_visible_capture_ansi "$TARGET" > "$EVIDENCE/exit-popup.ansi"
lab pane read "$PANE" --source visible > "$EVIDENCE/exit-popup.txt"
old=$( . "$ROOT/.test-tmp/base-composer.sh"; fm_backend_herdr_composer_content "$TARGET" )
fixed=$(fm_backend_herdr_composer_content "$TARGET")
printf 'Base composer content: <%s>\nFixed composer content: <%s>\n' "$old" "$fixed"
[ "$fixed" = /exit ] || fail 'fixed composer still includes popup'
[ "$old" != /exit ] || fail 'base failure not reproduced'
fm_backend_herdr_composer_clear "$TARGET" /exit || fail 'could not clear slash draft'
baseline=$( . "$ROOT/.test-tmp/base-composer.sh"; fm_backend_herdr_send_text_submit "$TARGET" /exit 3 0.4 1.2 )
printf 'Base /exit submission verdict: %s\n' "$baseline"
[ "$baseline" = send-failed ] || fail 'base failure not reproduced end to end'
lab agent get "$PANE" > "$EVIDENCE/base-refusal-agent.json" || fail 'base refusal unexpectedly exited Claude'
pass 'base code refuses and clears /exit while Claude remains running'

verdict=$(fm_backend_herdr_send_text_submit "$TARGET" '/exit' 3 0.4 1.2) \
  || fail "send_text_submit failed to run the /exit submission against Claude Code ($VERSION) on $HERDR_VER"
[ "$verdict" != send-failed ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: a typed /exit behind its command popup was judged unsent and cleared instead of submitted"
exited=0
i=0
while [ "$i" -lt 30 ]; do
  if ! lab agent get "$PANE" >/dev/null 2>&1; then exited=1; break; fi
  i=$((i + 1))
  sleep 1
done
[ "$exited" = 1 ] \
  || fail "Claude Code ($VERSION) on $HERDR_VER: the /exit submission reported '$verdict' but the agent never exited"
pass "live Herdr submit confirm: Claude Code ($VERSION) on $HERDR_VER proves and submits a typed /exit behind its command popup"

[ "$CHECKED" -gt 0 ] || fail "FM_HERDR_SUBMIT_CONFIRM_LIVE=1 checked no harness"

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.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Submit /exit behind Claude’s slash-command popup and confirm Claude stops ✅ pass live live-popup-proof.log: base includes popup rows, returns send-failed, and retains the live agent; fixed content is /exit and Claude exits.
Type a partial slash command and prevent the selected popup command from becoming payload proof ✅ pass live live-popup-proof.log and partial-popup.html: /exi remains pending and cannot prove /exit despite the popup selection.
Present incomplete free text and retain strict payload equality ✅ pass live live-popup-proof.log: ONLY_SUFFIX cannot prove MISSING_HEAD ONLY_SUFFIX.
Submit ordinary and operational messages and observe Claude’s requested replies ✅ pass live live-submit.log and live-popup-proof.log: ordinary and U+2063-marked messages render their requested replies.
  • TMPDIR=&#34;$PWD/.test-tmp&#34; tests/fm-composer-lib.test.sh — passed.
  • TMPDIR=&#34;$PWD/.test-tmp&#34; 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.sh with 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.

0x7067 added 2 commits October 7, 2026 21:20
…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.
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