Repository navigation
fix: tell an idle parent when a child result couldn't reach its chat - #208772
Conversation
When a child's completion turn cannot run in its parent (for example, the parent's access program check refuses it), the result settles into the parent's history. That entry was hidden from the chat, so a parent that never ran again left the person with nothing. Show it as a chat row with the delivery reason and the child's result; the model still reads it once.
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
…arent Ayaan approved one notice on top of #204178: the status entry stays hidden and model-visible, and an idle requester's chat gets one chat-only line naming the child and the reason. A running requester turn reads the entry, so it gets none.
|
Codex review: passed. What this changesThis PR displays otherwise undelivered child results in the parent chat, together with the recorded delivery reason. Example: The child “Fix the parser” returns “PARSER FIXED,” but the parent's completion turn is refused before starting.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current silent-result failure through the existing completion-history owner; no blocking defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSubagent completion settlement receives undelivered child outcomes and appends a bounded entry to the requester transcript, which supplies chat history and subsequent model context. flowchart TD
A[Child finishes] --> B[Completion delivery]
B --> C[Parent consumes result]
B --> D[Undelivered result]
D --> E[Existing history settlement owner]
E --> F[Displayed parent chat row]
E --> G[Parent model history]
Technical reviewBest possible solution: Keep the existing settlement owner and display its bounded fallback entry when no parent turn consumed the child result. Do we have a high-confidence way to reproduce the issue? Current-main source preserves the hidden-row failure, and the supplied Gateway reproduction and before screenshot establish its user-visible effect; this read-only review ran no target code. Is this the best way to solve the issue? The patch repairs visibility at the shared producer while retaining consumed-result exclusion, deduplication, cleanup ordering, and the existing text budget. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7c283371809c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +83, Docs +2. Total +95 across 10 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 29, 2026, 11:00 PM ET / November 30, 2026, 04:00 UTC. |
|
Maintainer override:
|
|
Landed as affa804. The hidden child-status entry is unchanged; an idle parent now gets one short line when a child result cannot reach its chat. The red ratchet came from main (see the comment above). |
* commit 'b21f557c8fa038ebc1842e204e356eb063aea4c6': (46 commits) test(ui): keep real exports in the channel settings distribution mock (#208855) test(normalization): preserve inline code in quoted previews (#208857) fix(ci): restore adaptive priors across large repository trees (#208838) test(agents): cover typography preservation in patch updates (#208851) fix(ci): wait for selected agent during model setup proof (#208847) fix: keep Telegram topic messages out of Home’s chat history (#208778) fix(worktrees): name the session to restore and say agents can't (#208828) fix: tell an idle parent when a child result couldn't reach its chat (#208772) fix: keep the provider search focused when accounts load (#208780) fix(clawrouter): respect permitted speeds on model fallback (#208830) fix(ui): show provider rejection details without Markdown escapes (#208829) fix: make the cloud worker deletion test reliable across reconnects (#208812) fix(update): preserve preparation lock ownership (#207139) chore(release): update appcast for 2026.11.12 (#208820) fix(android): Talk does nothing when mic access is permanently denied (#206609) test(config): preserve media model primaries across repeated edits (#208837) fix(browser): use the mock keychain for new headed macOS profiles (#208814) fix: start source workers without synchronous filesystem reads in the caller (#208789) refactor(ios): stop loading retired Overview data (#208795) perf(knowledge): stop repeating write-input schemas in batch and correct tools (#208617) ...
What Problem This Solves
A child's completion that no parent turn consumes settles at once as a hidden, model-visible status entry in the parent's history (#204178). The parent model reads that entry on its next turn and decides what to tell the person.
When no parent turn is running, nothing else wakes the parent, so the person never learns that the child finished. One example is a parent whose completion turn was refused before it started by its access-program check.
Reproduced on
mainwith a real Gateway (local fake provider, the real OpenAI route through a managed proxy):Solution
This adds one notice on top of #204178 and changes nothing else in it.
appendChildStatusToRequesteris the single owner that every undelivered child completion passes through: the requester-settle batch, the announce give-up, media-queue recovery and the legacy suspended-row sweep.It writes the hidden status entry exactly as before. The result stays hidden.
Then, only if no turn is running on the parent's own session, it writes ONE separate displayed line:
How "no parent turn consumed the hidden row" is decided at the owner:
isSessionRunActive(<parent session id>)is checked.globaldoes not hide the line.What the line is:
display: true, excludeFromContext: true. The model context is unchanged, and the line carries no result.formatAnnounceDeliveryErrorno longer repeats the delivery error as adirect-primary:phase, so the reason in the line reads once.User Impact
Evidence
subagent-child-status-history.test.ts:subagent-completion-replay.test.ts"does not replay an announcement settled in requester history", failed once inside the 25-file batch under host load, with a residual root at teardown (28.6 s instead of about 4 s). It passes alone on this branch and on the merge base.The system-cancelled completions on one production Gateway (deploy window, exact scorecard rows)
None would get the line; all end delivered:
requester-settle … :pause): yield acknowledgements, not child results. Paused children never reach the give-up owner, and the results arrived later through normal completions.announce:v1, one parent): all three expired while the parent's own run was auto-compacting (17:56:29 start, 17:57:43 "succeeded; retrying prompt"; the third during the retried prompt). That run was active, so no line; its retried model call read the hidden entries written at +0 s.