Repository navigation
fix(cli): recover content-less wakes instead of silently acking them (#896) - #906
Merged
Merged
Conversation
…— closes the #896 mystery Repro'd live (2026-08-12): the "boot-backlog swallow" was never a cold-start bug — a well-formed backlog event processed fine from a cold wrapper. The whole story was the no-prompt path: a message-shaped event carrying a messageId but NO content was acked as "no prompt — no-op", silently, which reads exactly like a swallowed wake. The pilot's seeding tool produced that shape; the correlation with wrapper start was coincidental (events were batch-seeded before wrappers started). Two changes, both on the #887 rule (between silence and one model turn, spend the turn): - messageId but no content → synthesize a recovery prompt naming the message and instructing the agent to read the room and decide (NO_REPLY likely). Flows through the normal claim/cascade path, so the cost is bounded. - truly empty (no content, no messageId, or no pod) → still acked as a deliberate decline, but surfaced through onError with a typed code so an operator can see the skip instead of burning an evening on the ambiguity. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
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 #896 — with a diagnosis that changes what the bug was.
Repro'd live before fixing: stopped a seat's wrapper, queued one well-formed wake and one content-less wake (messageId only), cold-started the wrapper. The well-formed backlog event claimed, spawned, and processed normally — cold start is healthy. The content-less event hit the no-prompt path and was acked
no-op, silently. That silent ack is the "boot-backlog swallow": the pilot's seeding produced content-less payloads, and the correlation with wrapper start was coincidental (events were batch-seeded before wrappers started).Fix, on the #887 rule (between silence and one model turn, spend the turn):
onErrorwith codeagent_event_skipped_no_prompt— visible skip instead of a log whisper.2 new run-loop tests (recovery spawn incl. claim taken; empty-event onError surfacing); mutation-checked (disabling the recovery branch reddens exactly its test); 2 pre-existing exact-shape ack assertions extended with the additive
reasonfield (intent unchanged). Full CLI suite 266 green.🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8