Repository navigation
fix: show a confirmed subagent stop once in chat - #208533
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: needs changes before merge. What this changesThis PR folds a repeated subagent stop notice into its confirmed stop action while preserving the child’s name. Example: The assistant stops “Release notes search” and receives that execution’s terminal notice in the same turn.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: it addresses a concrete display bug still present on main, but two patch-caused CI failures need repair. Reviewed head: Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI projects recorded and live tool calls, results, and subagent completion receipts into grouped chat activity. flowchart TD
A[Recorded and live messages] --> B[Completion projection]
B --> C[Tool invocation reconciliation]
C --> D[Match confirmed stops]
D --> E[Activity grouping]
E --> F[Chat rows and details]
Technical reviewBest possible solution: Keep execution-specific deduplication in the existing chat projection while repairing the assertion and startup-size regressions. Do we have a high-confidence way to reproduce the issue? Main independently renders confirmed stop actions and killed completion receipts, and the inspected before screenshot shows both for the same child; no live reproduction was run during this review. Is this the best way to solve the issue? Matching parent run, child run, and child session after invocation reconciliation is appropriately scoped, and retaining continuation notices preserves resumed-turn placement. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ebb8d9827234. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +128, Tests +125, Docs +1. Total +254 across 8 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: No label 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, 2:40 PM ET / 19:40 UTC. |
* commit 'c5c1dc278a6f789d739d70afe192c4d1e37058f5': fix(ci): include provider rejection text in PR tooling (#208891) feat: let plugins bring their own sidebar icon (#208885) docs: clarify node pairing and credentials on PostgreSQL gateways (#208850) fix(ui): show a confirmed subagent stop once in chat (#208533) fix(ui): keep collapsed work close to the reply in long chats (#207843) fix(update): finish failed recovery startup records (#208794) chore(ci): inventory media worker lifecycles (#208888) fix: use the same clock icon for Automations (#208539) improve(ci): reduce compiler round trips in database checks (#208878) fix(ci): preserve complete adaptive test observations (#208874) test(gateway): isolate usage context database fixtures (#208304) fix: avoid false worker cleanup failures (#208861) fix: let Git upgrade acceptance fetch its missing baseline (#208746) fix: isolate scheduled Processes reads in the Control UI config-change test (#208205) fix: make plugin hash worker tests independent of runner memory (#208860) fix(update): preserve serving state during candidate plugin maintenance (#208776) test(ui): preserve exact session keys in older chat links (#208873) docs(cli): say what bounds a yielded agent turn's subagent wait without --timeout (#208858)
* fix: restore managed worktrees from bare primary repositories Managed worktrees created from a linked checkout record its primary repository. Resolve that registration during inspection, removal, and snapshot restore while keeping new checkout creation strict. * Merge verified upstream CI repairs into managed worktree recovery * commit 'c5c1dc278a6f789d739d70afe192c4d1e37058f5': (64 commits) fix(ci): include provider rejection text in PR tooling (#208891) feat: let plugins bring their own sidebar icon (#208885) docs: clarify node pairing and credentials on PostgreSQL gateways (#208850) fix(ui): show a confirmed subagent stop once in chat (#208533) fix(ui): keep collapsed work close to the reply in long chats (#207843) fix(update): finish failed recovery startup records (#208794) chore(ci): inventory media worker lifecycles (#208888) fix: use the same clock icon for Automations (#208539) improve(ci): reduce compiler round trips in database checks (#208878) fix(ci): preserve complete adaptive test observations (#208874) test(gateway): isolate usage context database fixtures (#208304) fix: avoid false worker cleanup failures (#208861) fix: let Git upgrade acceptance fetch its missing baseline (#208746) fix: isolate scheduled Processes reads in the Control UI config-change test (#208205) fix: make plugin hash worker tests independent of runner memory (#208860) fix(update): preserve serving state during candidate plugin maintenance (#208776) test(ui): preserve exact session keys in older chat links (#208873) docs(cli): say what bounds a yielded agent turn's subagent wait without --timeout (#208858) test(ui): keep real exports in the channel settings distribution mock (#208855) test(normalization): preserve inline code in quoted previews (#208857) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
When the assistant stops a subagent and the same turn receives that run's terminal notice, Chat can show both “Stopped Release notes search” and “Release notes search stopped”. They describe the same stop twice.
User Impact
The confirmed stop appears once, on the action row whose details can still be expanded. It keeps the child's name before and after history catches up, including when other stops are nearby. Chat still shows outcomes for other subagents in the same notice.
Why This Change Was Made
Pair the stop call with its successful result, then match the parent run, child run, and child session against the actual displayed operations. Fold the repeated notice into the visible stop row, keeping its name. Leave notices that also mark resumed work in place.
Risk and coverage
Control UI display only. 135 focused tests passed, including live and persisted stops, grouped operations, Tool Search dispatches, and history replay. UI typecheck, lint, and formatting passed.
Local review of earlier revisions found name loss in live and grouped activity and duplicate Tool Search rows. The final focused tests cover those cases. The repeat local review of the final commit reached its time limit without a verdict.
Evidence
Same chat turn rendered in Chromium from synthetic transcript records on
f881447c05cand9e182cd3eda. The assistant stops one subagent, launches its replacement, and replies. The production chat renderer was exercised; this was not a live Gateway run.Annotated comparison
Clean comparison