Repository navigation
feat(ui): redesign tool-call rendering, grouping, and lifecycle narration - #198133
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR reorganizes chat tool activity into compact chronological groups with separate subagent lifecycle rows and stable disclosures. Example: Atlas launches, finishes, and the parent continues working.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-approved redesign open. The prior findings are addressed, but the latest continuation repair introduces an import cycle that blocks the architecture check. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherAgent execution and persisted transcript receipts feed Gateway display projection, which supplies the Control UI's grouping, lifecycle narration, and expandable tool details. flowchart LR
A[Agent execution] --> B[Transcript receipts]
B --> C[Gateway display projection]
C --> D[Chat activity projection]
D --> E[Lifecycle rows]
D --> F[Expandable tool details]
Technical reviewBest possible solution: Preserve the redesign and continuation fix while keeping both continuation-projection functions in the existing history module. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the newly closed import cycle, and exact-head CI independently reports the matching architecture-check failure; no local target execution was performed. Is this the best way to solve the issue? The redesign uses recorded execution facts and consolidates activity rendering, but its newest helper relocation creates an unnecessary dependency cycle. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59d9759d0250. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed November 16, 2026, 10:49 AM ET / 15:49 UTC (Revision 8). |
|
Addressed the review of
The body now contains six new recordings and ten screenshots, with the final-head real-model run and deterministic scenarios clearly separated from historical evidence. Final focused tests, UI types/lint/build and the three canonical bundled browser cases passed. The six current UI performance-budget violations are explicitly retained as limitations; no budget was raised. This remains a draft for product review. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Tool-call history was noisy and hard to follow: routine wrappers competed with useful work, launches could be confused with later outcomes, and expanded details could shift or disappear as history refreshed.
User Impact
Chat now shows compact, chronological tool activity with independent disclosures and distinct subagent launch, stop, success, failure, and timeout facts. Commands use one muted, truncated line while expanded details retain their content. Image inspection previews remain separate from attachments in the final answer.
Questions stay in the composer, and inline command output keeps its existing opt-in preference. These narration changes are for the Control UI, including the macOS dashboard; they do not introduce extra messages to Discord, Telegram, or other channels. No schema migration or new user configuration is required. Existing bundle budget adjustments approved during the cleanup remain unchanged.
Why This Change Was Made
Recorded execution identities and result-time placement keep lifecycle rows stable across streaming, output caps, history refreshes, and reloads. Nested tool-search calls share the same presentation as direct calls. Mixed collections retain their error details while completed workers get their own factual outcome rows. Explicit disclosure choices stay shared between panes; automatic expansion for reading stays local to its pane.
Original design and implementation: @vyctorbrzezowski. Simplification and follow-up fixes: @obviyus (Ayaan Zaidi). Both contributions are retained.
Evidence
Maintainer review of
c4ae85d1, test-only correction21286219, and integratione4cd6537onmainat9bfad2b:mainat9bfad2b, preserving its removal of two test suites. Independent integration review confirmed that the overlapping delivery code keeps main's current-chat ownership; the PR adds only display metadata there.Known inherited CI failure:
extensions/codex/src/app-server/run-attempt.context-engine.test.ts:631expects nomarkSentToProvidercall but receives one. It reproduced on both the reviewed PR (18 passed / 1 failed) and an isolatedfcf29c4baseline (same assertion, 58.13 s). The test and its notifier/active-turn sources are byte-identical between them: the notifier callsmarkRuntimePersistedand thenmarkSentToProvidersynchronously. Those inputs remain unchanged after integrating9bfad2b. This failure remains disclosed; it was not hidden or repaired by changing this PR's behavior. Current-head integration checks are pending.The earlier live verification used UI/runtime
726c42efor the image/disclosure refinements,e4e46dffor six refreshed compositions, and0f5247cfor typography. Other images retain their stated earlier provenance. The source-card absence after reload and visible output truncation are disclosed below, not claimed as fixes here.Live image and disclosure refinements — 726c42e
UI and runtime both use this commit. Existing histories were freshly rendered; the image comparison retains its explicit before/after provenance.
Spacing and independent subagent disclosures — Fresh render of existing records: 12px around narration, 4px between tools and child rows, stronger names, and separate group and child disclosure state. Capture and execution provenance are retained with the artifacts.
Live image preview without automatic attachment — Comparable real image-inspection flows. The new preview appeared while the parent continued working; the final response contained text only. Capture and execution provenance are retained with the artifacts.
Temporal checks confirmed the image reference and preview arrived while the parent was still working, with no image attached to its final text response. The cold question opened without the page-sized loading skeleton or the prior height overshoot. The label was observed as
Wait for subagents; an invalid model-supplied timeout combination was rejected before the model corrected it.Typography and patch labels — 0f5247c
Comparable real workflows show the tool font changing from 13px to the transcript’s 14px and the completed patch label changing from Apply Patch to Changed files. Before: UI e4e46df. After: UI 0f5247c. Both use runtime d070dd0.
Temporal samples separately confirmed subtle command shimmer. A transient question-dock height adjustment was observed; its cause was not isolated or fixed by this change.
Before and after: expanded command
The same recorded multiline command, expanded at the same viewport and crop, before and after the change.
Visual review — 7fce36a
Real Gateway captures with per-block provenance. Blocks 01–03, 07–08 and 10 were refreshed at e4e46df. The other captures and the separate before/after comparison retain their original 7fce36a provenance. Each clean image is paired with the same composition annotated in red. Replayed records retain their execution-head provenance. Click an image for full resolution.
01 · Successful completion and real boundaries — Only successful workers finish; stopped workers are excluded and intervening actions retain chronological boundaries. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
02 · Adjacent lifecycle batches — Consecutive launches and stops share compact rows. Narration and a file read retain their chronological boundaries. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
03 · Swarm launch through completion — A real concurrent launch stays in one pending row. Confirmed launch and successful completion remain compact. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
04 · Standalone and manually opened errors — The failed standalone action stays muted; a manually opened activity group exposes its recorded error. Existing recorded run, freshly rendered in this build.
05 · Reader and follower stay independent — The same completed run stays expanded in the reader pane while the pane following the end remains collapsed.
06 · File creation, rename and deletion — Multi-file patch details, a silent command and a failed file read. Existing recorded run, freshly rendered in this build.
07 · Short question in the composer — The short question stays in the composer at desktop and narrow widths, with one concise tool label. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
08 · Long question and submitted answers — The longer next step wraps in the composer. The completed conversation retains both submitted answers. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
09 · Attachments and explicit media — Uploaded image and CSV, standalone image inspection, and returned media or file cards.
10 · One command summary with nested results — Code Mode and shell commands share one command summary, preserving child results and the standalone script title. Existing recorded run, freshly rendered in this build. Rendered at e4e46df.
11 · Interruption, steering and reload — A stopped parent run followed by independent work, with accepted notes preserved in order.
12 · Inline details opt-in — The same settled transcript with inline details disabled and explicitly enabled. Existing recorded run, freshly rendered in this build.
13 · Permission decisions — Actual denial, approval and pending controls from a dedicated guarded session.
14 · Web fetch and source rendering — The live answer includes its Sources card. After reload the citation link remains, while the separate Sources card is absent.
15 · Long output and its available tail — Actual command output, a separate no-match grep result, and the available output tail with its truncation marker. Existing recorded run, freshly rendered in this build.
16 · Dark and narrow layouts — Current transcript examples at reduced width and in dark mode. Existing recorded run, freshly rendered in this build.
Capture/render head is verified for every image. Replayed conversations retain a separately recorded execution head. Automatic error-group expansion is not claimed: the observed active command flow exposed a summary. Output truncation and source rendering are reported exactly as captured.
Simplification pass — 211ac7a
Merged
main, then simplified with no change to behavior or design. Against merge base25c9790: production net +2,687 → +2,604, tests net +2,752 → +1,335, and the test-line allocation went from 2,352 to 921. Also requested:subagentsaction: "list"uses the lifecycle icon and reads "Listed subagents". The swarm and screenshot e2e now match the coalesced lifecycle rows. Evidence and screenshots: #198133 (comment)