Repository navigation
fix(ui): keep avatars visible while replies stream - #186499
Conversation
Require actual messages before classifying a frame as non-owning narration or provider voice work. This preserves the streaming avatar contract while keeping completed narration and work disclosure behavior unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR requires actual messages before classifying a chat frame as narration-only or provider-voice work. Example: An assistant reply starts streaming before any finalized messages arrive.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR restores the streaming-avatar contract with a focused, correct guard; no actionable defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI converts streamed run parts into message-group frames, whose presentation flags control avatars, footers, and reply connectors. flowchart TD
A[Gateway stream events] --> B[Chat run grouping]
B --> C[Agent run frame]
C --> D[Message group preparation]
D --> E[Avatar and footer rendering]
Technical reviewBest possible solution: Use the existing nonempty-message guard for both work-only predicates while retaining completed narration, voice, and tool presentation. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the empty-list failure directly, the retained browser regression checks the affected avatar, and supplied real-model captures support the reported reproduction; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair at the existing classification owner: it changes empty-list behavior without adding state, identity requests, rendering paths, or tests. 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 0. Total 0 across 1 file. 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:46 PM ET / October 28, 2026, 03:46 UTC. |
|
Merged via squash.
|
…188045) * fix(ui): completed turns scatter work across many Worked disclosures Restore the completed-turn presentation that predates #183267: in completed dashboard turns, preamble, commentary, reasoning and tool activity fold into one "Worked for X" disclosure above the answer, work recorded after the answer moves above it, and speech bubble view keeps its activity disclosure without a second rollup. Remove the per-envelope work splitting (chat-work-chunks), its envelope bookkeeping in tool cards and source previews, and the split-fragment action/footer/terminal-status ownership fields. Restore session timing for the rollup and the prior test expectations, keeping later unrelated main changes (#186323, 4d50f6c handoff split, 210b364, bd10ba2, the video widget lazy-import wait and the empty-group avatar guard from #186499). Add regression coverage for Markdown narration order, tool-result images staying in their tool group, post-answer work above the answer and bubble mode without a rollup. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): completed turns scatter work across many Worked disclosures Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 18f1a29d-eed5-4a6e-9d33-e5dc8590b854 * fix(ui): preserve completed-turn outcomes and reply ownership * fix(ui): retain forwarded narration and prepared action text --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
…penclaw#188045) * fix(ui): completed turns scatter work across many Worked disclosures Restore the completed-turn presentation that predates openclaw#183267: in completed dashboard turns, preamble, commentary, reasoning and tool activity fold into one "Worked for X" disclosure above the answer, work recorded after the answer moves above it, and speech bubble view keeps its activity disclosure without a second rollup. Remove the per-envelope work splitting (chat-work-chunks), its envelope bookkeeping in tool cards and source previews, and the split-fragment action/footer/terminal-status ownership fields. Restore session timing for the rollup and the prior test expectations, keeping later unrelated main changes (openclaw#186323, 5429704 handoff split, 853d946, 3fad731, the video widget lazy-import wait and the empty-group avatar guard from openclaw#186499). Add regression coverage for Markdown narration order, tool-result images staying in their tool group, post-answer work above the answer and bubble mode without a rollup. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): completed turns scatter work across many Worked disclosures Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 18f1a29d-eed5-4a6e-9d33-e5dc8590b854 * fix(ui): preserve completed-turn outcomes and reply ownership * fix(ui): retain forwarded narration and prepared action text --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Related: #183267, #186044.
What Problem This Solves
An agent’s avatar disappears when its reply starts streaming after the narration presentation update.
User Impact
The existing avatar remains visible with the first streamed text. Completed narration and tool disclosures keep their current presentation.
Why This Change Was Made
Streaming run frames have no finalized messages yet. The narration change treated this empty list as work and hid its avatar. Both work-only checks now require at least one message. This restores the behavior previously fixed in #186044, without adding state or changing identity loading.
Evidence
The unchanged pending-telemetry browser regression fails on main with a missing avatar and passes with this guard; all eight streaming E2E cases pass. Focused UI and chat E2E typechecks, lint, formatting, and affected baseline ratchets pass. Independent Codex autoreview found no actionable P0–P2 findings. Production: +2/−2 lines; tests: unchanged.
Real local-model proof used an isolated Gateway, the real Control UI renderer, and Ollama
qwen2.5:7b. The first streamed reply had zero avatars before and one after; both turns completed without browser errors. The before renderer pinned the unchanged base owner source; the after renderer used this guard. No DOM or CSS was injected. First-text timings (11.0s and 23.9s) describe the two runs, not a performance comparison.The crops contain only synthetic assistant content and exclude surrounding account controls.
Known inherited CI failures from the same narration update concern stale work-duration/reply-reveal expectations and Swift settlement membership. They are independent of this avatar guard.