Repository navigation
fix: allow idle Grok workers to exit with approval-mode titles - #22
Merged
Merged
Conversation
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
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> exitrefused 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
· always-approveGrok composer title so idle workers can exit, while preserving exact width checks and refusing exit when drafts are pending.--always-approvein the live composer matrix.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.
Evidence: Grok browser authentication blocker
Source: Grok browser authentication blocker
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
bin/fm-test-run.sh --jobs 1 tests/fm-composer-lib.test.sh tests/fm-control.test.sh— passed.Provisioned a named Herdr lab throughbin/fm-herdr-lab.sh; launched real Grok 1.0.25 with--model grok-4.6 --always-approveand 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.