Repository navigation
Conversation
Restore the non-empty guard that #186044 added for live stream frames, which #183267 bypassed with a new every() check on an empty message list. Align UI e2e tests with the intended behavior of #183267 (untimed Worked chunks, narration inline, recap owns run duration) and #186290 (Dictation Configure opens Talk settings).
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs changes before merge. What this changesRestore avatars on empty streaming frames and update browser expectations for narration, run timing, and dictation settings. Example: The assistant starts streaming “The streamed response is now visible.” before any finalized message exists.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it fixes a current streamed-avatar regression and preserves distinct browser-test repairs; no introduced defect was found, although the avatar fix overlaps #186499. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects Gateway history and streaming events into message groups; the frame preparation owner determines their avatar, footer, and turn-block presentation. flowchart TD
A[Gateway history and stream events] --> B[Agent run grouping]
B --> C[Run frame shell]
C --> D[Message frame preparation]
D --> E[Avatar and footer visibility]
E --> F[Control UI transcript]
Technical reviewBest possible solution: Land one shared avatar guard while preserving this PR’s distinct browser repairs and the existing narration, timing, and voice-only behavior. Do we have a high-confidence way to reproduce the issue? The real run-frame producer supplies messages=[], and current main’s unguarded every predicate suppresses its avatar; the existing browser assertion and equivalent sibling’s inspected before capture corroborate the path without executing target code during this review. Is this the best way to solve the issue? The shared nonempty guard is the smallest complete production repair, and the browser updates follow documented owner decisions without adding state, weakening source-navigation checks, or duplicating regression scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 14526249956c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +27. Total +28 across 5 files. Added test files: 0. View PR surface stats
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 Reviewed October 27, 2026, 11:47 PM ET / October 28, 2026, 03:47 UTC. |
Related: #183267, #186044, #186290
What Problem This Solves
Fixes: a streamed assistant reply in Control UI chat renders without the agent avatar while it streams, and
checks-ui-e2eonmainfails in four files whenever the UI e2e lane is selected (scheduled runs sincefdeb8f7efd).User Impact
User impact: streamed replies show the agent avatar again, as #186044 intended. The Control UI e2e lane is green on main again for these files (the prompt height-cap failure was already fixed by #186409).
Why This Change Was Made
isTurnBlockso a run frame that only holds a live stream (emptymessages) keeps its identity. fix(ui): chat hides narration after a run finishes #183267 merged right after it and addedgroup.messages.every(presentationOwnsFooter === false), which istruefor an empty list, so the live frame became a turn block again and lost its avatar. The non-empty guard now covers bothevery()checks.chat-flow.streaming"keeps the pending telemetry row stable through acknowledgement and streaming" is the regression test (unchanged; red on main, green here).docs/web/control-ui/chat.md):chat-run-lifecycle: the 13 s duration that excludes the failed turn's idle time is now asserted on the recap ("Done in 13 seconds"), including after a later run's lifecycle row and after reload; the work label is "Worked".chat-cold-load-anchor: the cached first frames must show the recap's "Done in 3 minutes" instead of "Worked for 3 minutes".chat-collapsed-reply-reveal: earlier narration is no longer folded, so the test asserts it stays visible and that every tool chunk stays collapsed (several chunks in the deep case) before and after replying through search. The reply-reveal, highlight, scroll and request assertions are unchanged.browser-dictation-statusnow expects Dictation Configure to open/settings/talk, not model setup.Evidence
On a remote Ubuntu test VM (Node 24.22.1, Chromium headless shell 1248,
--maxWorkers 2, private network namespace), runningnode scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runneron the five affected files plusnew-session-page.cloud-startup:228596060e3'Worked' to be 'Worked for 13 seconds',null not to be nullavatar, strict-mode 6.chat-work-group button,Worked for 3 minutestimeout,/settings/talkvs/settings/model-providers)Failures were collected from main scheduled runs 40615065526 (
fdeb8f7efd) and 40621333872 (dafda2f722);b1844ddb1d(run 40611224841) had only the dictation and prompt-height failures, which bounds the chunk breakage to #183267 / #186323, and #186323 has no UI rendering changes.Also:
oxfmt --checkandoxlinton touched files,tsgo -p tsconfig.ui.json, and the related unit files (chat-message-group.solid,chat-transcript-duration,chat-thread; 118 tests) pass.Gap: no new screenshots. The avatar change restores #186044's reviewed output rather than introducing a new visual, and the streaming e2e asserts the avatar element.