Document the manager-captured handoff fallback in Step 4c (#95) - #99
Merged
Conversation
Step 4c assumes the manager can drive the worker via tmux send-keys, but at
roughly >=97% context the worker's input jams: sent text queues as
"Press up to edit queued messages" and Enter does not submit it. So /clear --
and any "do a handoff" instruction -- cannot be driven via send-keys in exactly
the situation the step exists to handle. If 4c fires late, the handoff silently
fails and the worker wedges at 100% anyway.
Step 4c previously noted the jam only in passing ("the manager captures the
handoff note on its behalf") without saying how, so the recovery was not
actually reproducible from the doc.
Changes (both mirrors, per the parity requirement):
- Explain that the jam IS the reason for the 95% threshold, with the observed
symptom, so the WHY is not folded into a single clause.
- Add a "Fallback: worker input is already jammed" subsection with the five
concrete steps that were observed to work: commit the worker's uncommitted
edits from outside, post the handoff note on the issue, issue_release the
claim, hard-restart the pane (a kill, NOT send-keys /clear, which is what is
jammed), then resume with /autocoder:fix.
- Note that the pane must be confirmed up before reporting recovery, since
restart-worker.sh kills first (see #94).
- Recommend prevention: treat >=95% as a hard trigger, and prefer a worker loop
that self-hands-off before the jam over the manager catching it on a tick.
Verification: 17/17 shell unit tests pass; both mirrors carry the fallback.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Closes #95
Problem
Step 4c assumes the manager can drive the worker via
tmux send-keys. But at roughly ≥97% context the worker's input jams — sent text queues as❯ Press up to edit queued messagesand Enter does not submit it. So/clear, and any "do a handoff" instruction, cannot be driven via send-keys in exactly the situation the step exists to handle. If 4c fires late, the handoff silently fails and the worker wedges at 100% anyway.The step previously acknowledged the jam only in passing — "the manager captures the handoff note on its behalf" — without saying how, so the recovery was not reproducible from the doc.
Changes Made
Both mirrors updated (
plugins/autocoder/commands/↔.agent/workflows/, per the parity requirement in CLAUDE.md):issue_releasethe claim so the resumed worker re-claims cleanly,/clear, which is the thing that is jammed,/autocoder:fix <n>.restart-worker.shkills first (the relaunch bug is fixed separately in Fix #94: resolve claude-worker-loop.sh from the lib dir, not repo_root #96).Verification
Note
The
.agent/mirror already diverged fromplugins/atmaster(different command naming, missing Step 0). That pre-existing drift is left alone — only this change is mirrored, adapted to the Antigravity variant's conventions.🤖 Generated with Claude Code