Skip to content

fix: allow idle Grok workers to exit with approval-mode titles - #22

Merged
peterOC26 merged 1 commit into
mainfrom
fm/fm-control-grok-exit-composer-g1
Sep 24, 2026
Merged

peterOC26 merged 1 commit into
mainfrom
fm/fm-control-grok-exit-composer-g1

Conversation

@peterOC26

Copy link
Copy Markdown
Owner

Intent

Idle helpers keep pinging, and each ping costs a full re-read, so finished helpers should be stopped promptly. Today the stop command refused every idle Grok worker, so Grok helpers cannot be tidied and keep pinging. Start a worker to fix that.

Context: on 2026-09-24, bin/fm-control.sh <id> exit refused five idle Grok 4.6 workers on the Herdr backend (a finished product look, a finished preview helper, and others), each with: "composer state is 'unknown', not proven empty; refusing to type the /exit exit command because it could concatenate onto existing text. Clear the composer, then retry 'exit'". Codex workers stopped fine in the same session.

What Changed

  • Recognize the · always-approve Grok composer title so idle workers can exit, while preserving exact width checks and refusing exit when drafts are pending.
  • Add regression coverage for empty composers, pending drafts, malformed widths, and exit behavior; launch Grok with --always-approve in the live composer matrix.
  • Document the composer handling and live Herdr verification evidence.

Risk Assessment

✅ Low: A single-line width-normalization fix in the titled-bottom classifier that matches the fleet's actual Grok launch flag, keeps the exact geometry and content-row proofs intact, and is covered by behavior tests that trace the empty, draft, and malformed captures through the real classifier and exit command.

Testing

Focused behavioral tests passed. Real Grok reached browser sign-in but neither lifecycle scenario could be exercised. Saved the terminal blocker transcript and completed lab cleanup. No screenshot was captured; this change affects CLI lifecycle behavior.

  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Exit an idle Grok 4.6 worker with an empty approval-mode composer ⏸️ untested no The real Grok launch stopped at browser authentication. An authenticated disposable Grok home is required to exercise exit.
Refuse exit when Grok contains an unsent draft, preserving the draft and worker ⏸️ untested no Browser authentication prevented reaching the live composer. Authenticate the disposable Grok home and rerun.
Reject an approval-mode composer with mismatched border widths ⏸️ untested no Fixture-based behavioral assertions passed, but authentication blocked reaching a real Grok composer for live validation.
Evidence: Grok browser authentication blocker

Source: Grok browser authentication blocker


   detached worktree ~/.no-mistakes/worktrees/7f0ec18181b6/01M3AM6SSM3ZP1JDDD7PYDY8HH (worktree of ~



                                                    ⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⢀⠄
                                                    ⠀⠀⠀⣠⣾⠿⠛⠛⠛⠛⢀⡴⠁⠀
                                                    ⠀⠀⣼⡟⠁⠀⠀⠀⢀⡴⠻⣿⡀⠀
                                                    ⠀⠀⣿⡇⠀⠀⠀⠔⠁⠀⠀⣿⡇⠀
                                                    ⠀⠀⢹⣷⠀⠀⠀⠀⠀⢀⣴⡿⠀⠀
                                                    ⠀⢀⠞⠁⠠⢶⣶⣶⣶⠿⠋⠀⠀⠀
                                                    ⠐⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀


                                     Approve in your browser to finish signing in.

                                                       V9ES-59TP

                                        Make sure your browser shows this code.

                                        If it doesn't open, click here to copy.



                                   Copying not working? Click here to show full URL.

                                                Waiting for approval...






                                                     ctrl+q  quit
- Outcome: ⚠️ 2 warnings across 1 run (2m27s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 2 warnings
  • ⚠️ Live evidence cannot establish the intended shutdown behavior: Grok requires browser authentication in the disposable home. Provide an authenticated disposable Grok home and rerun this phase.
  • ⚠️ live validation verdict: inconclusive (0 of 3 scenarios were driven live against the product); untested: Exit an idle Grok 4.6 worker with an empty approval-mode composer, Refuse exit when Grok contains an unsent draft, preserving the draft and worker, Reject an approval-mode composer with mismatched border widths
  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Exit an idle Grok 4.6 worker with an empty approval-mode composer ⏸️ untested no The real Grok launch stopped at browser authentication. An authenticated disposable Grok home is required to exercise exit.
Refuse exit when Grok contains an unsent draft, preserving the draft and worker ⏸️ untested no Browser authentication prevented reaching the live composer. Authenticate the disposable Grok home and rerun.
Reject an approval-mode composer with mismatched border widths ⏸️ untested no Fixture-based behavioral assertions passed, but authentication blocked reaching a real Grok composer for live validation.
  • bin/fm-test-run.sh --jobs 1 tests/fm-composer-lib.test.sh tests/fm-control.test.sh — passed.
  • Provisioned a named Herdr lab through bin/fm-herdr-lab.sh; launched real Grok 1.0.25 with --model grok-4.6 --always-approve and an isolated home.
  • Captured the browser sign-in screen through the lab helper.
  • Completed guarded lab teardown and removed transient worktree files; working tree is clean.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@peterOC26
peterOC26 merged commit 33e290e into main Sep 24, 2026
19 checks passed
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