Repository navigation
fix(ui): chat hides narration after a run finishes - #183267
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 maintainer review before merge. What this changesKeeps completed assistant narration inline and collapses contiguous tool and reasoning activity into separate disclosures. Example: A completed dashboard run contains “Checking.”, a read operation, and “Done.”
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful web presentation change that current main lacks, with no actionable introduced defects found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects Gateway history and live chat events into transcript rows, disclosures, previews, and source-message actions. flowchart TD
A[Gateway history and events] --> B[Message grouping]
B --> C[Mixed envelope projection]
C --> D[Contiguous work grouping]
D --> E[Transcript indexes and run frames]
E --> F[Flat and bubble views]
E --> G[Original message actions]
Technical reviewBest possible solution: Retain this focused web implementation alongside the native companion, preserving original transcript identities and keeping whole-run timing in the final recap. Do we have a high-confidence way to reproduce the issue? Current-main predicates establish narration folding, and the supplied before captures show it; no target code was executed during this review. Is this the best way to solve the issue? The projection addresses mixed envelopes at the presentation boundary while preserving source actions, parser context, recovery, and attachment ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ca305f7d9425. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +300, Tests +1453, Docs +4, Other 0. Total +1757 across 39 files. Added test files: 4. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 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 (13 earlier review cycles; latest 8 shown)
Reviewed October 27, 2026, 8:32 PM ET / October 28, 2026, 00:32 UTC (Revision 14). |
14a168b to
f9f85d0
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Set the ceiling to the measured CI tree plus 1,073 lines, the largest observed main-tree growth during this repair. Preserve all assertions and test inclusion while avoiding repeated failures as main advances during a run.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Related: #180490
What Problem This Solves
Fixes completed Control UI dashboard chats hiding assistant narration inside one work disclosure, while bubble mode leaves completed tool activity outside that grouping.
User Impact
Assistant narration and visual results stay inline in source order. Only contiguous tool and reasoning work collapses, in both flat and bubble mode. Opening one work section does not open another, and loading older history preserves expanded sections.
Why This Change Was Made
The presentation layer now separates mixed assistant envelopes without changing stored history or the source identities used by copy, reply, reactions, and full-message loading. Capped envelopes and envelopes whose Markdown or visibility depends on surrounding blocks remain intact, so full-message recovery replaces one rendering unit. Envelopes carrying saved media also stay intact so their attachments render exactly once. Work disclosures anchor to the following visible boundary so history prepends do not replace their identity. Whole-run timing stays in the final recap and is not assigned to individual work stretches. A fresh pane restores saved timing from admitted cache metadata or the live session row only when it matches the visible completed reply; changing agent or Gateway invalidates the prior recap.
The refresh retains current main's distinct-message identities and ordered transcript indexes. Redundant portable fixture cases, repeated viewport checks, and verbose duration-test setup were removed. Unused session timing inputs were removed from work grouping and its memo keys. The pure projection tests run once; flat and bubble rendering retain separate browser coverage. The preview-order test uses a compact widget so it does not assume offscreen virtual rows stay mounted; the separate geometry regression remains.
Original implementation and regression work by @Marvinthebored; contributor commits are retained.
Evidence
The prior CI runs 40596392967 and 40599346638 exposed the test-line ceiling and a first-load video-widget test flake. Head 65fac8b then passed CI 40601985740, but a concurrent main ceiling update made it conflicting. Main 50bb32e is integrated; the only textual conflict was that budget value.
Exact-count ceilings repeatedly fell behind the newer main tree used by CI. Run 40603752066 passed its code, type, lint, and UI checks but counted 6,292,334 lines, 24 more than its locally measured tree. The ceiling of 6,293,407 was set from that measured CI tree plus 1,073 lines, the largest main-tree growth observed between this lane's integrations. The final candidate integrates main b3f004e and counts 6,293,028 lines: 1,367 PR-owned counted lines, 343 lines already over main's 6,291,318 ceiling, and 379 lines of remaining headroom. The existing ratchet stays enabled; assertions, snapshots, and test inclusion are unchanged.
The retained tests cover distinct ordering, source actions, privacy, Markdown, result pairing, recovery, status, and timing boundaries. Earlier consolidation reduced test/fixture growth from 1,823 to 1,424 lines; the final lazy-import wait adds one line.
The video-widget test now waits for its actual lazy import before checking the play button. Its playback and retained-frame assertions are unchanged. All 92 selected widget, duration, progress, and transcript tests pass after integrating main. The production implementation did not change in this CI follow-up. Independent review found no actionable P0–P2 findings. A fresh full-candidate review after integration found no actionable P0–P2 findings. The bounded budget follow-up also passed independent review. A later review identified persisted media being copied into every split fragment; the renderer regression reproduced three image tiles from one saved attachment. The repair keeps media-bearing envelopes whole through the existing media reader. All 65 tests in the affected projection, message-group, and video-gallery suites pass after the final integration (17.65 seconds wall time; 12.86 seconds Vitest duration). Independent review of the media repair found no actionable P0–P2 findings. Head 7dbf64a passed all CI checks and ClawSweeper with no findings. A concurrent main edit then conflicted only in the test-budget scalar. Main b3f004e is now integrated with the same ceiling and no chat-source change; all 92 selected chat, media, and identity tests pass (25.45 seconds total wall time). Final head 833e2d7 passed CI 40608575612, including the final gate. ClawSweeper reviewed that same head with no findings and marked it ready for maintainer review.
The before/after captures below are from the running Control UI with synthetic mock Gateway data. The flat view now keeps “Checking.” visible; bubble mode keeps narration visible with completed work collapsed.