Skip to content

fix(ui): keep avatars visible while replies stream - #186499

Merged
steipete merged 1 commit into
mainfrom
fix/ci-narration-ui-avatar
Oct 28, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-narration-ui-avatar

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

Before: avatar absent during streaming After: avatar visible during streaming
Streamed reply before the fix Streamed reply with its avatar

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.

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.
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 28, 2026
@steipete
steipete marked this pull request as ready for review October 28, 2026 03:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T03:43:16.107581Z 90f3b8c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The reply text appears with zero assistant avatars.
  • After: The existing assistant avatar appears alongside the first streamed text.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A minimal contract-restoring repair with inspected shipped-UI evidence and a retained behavioral regression; broad CI is still running.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed avatar behavior in the real Control UI; the accompanying evidence describes an isolated Gateway with a real local model and an unchanged base renderer compared with this guard.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An assistant avatar disappears while its response streams, despite the existing identity being available.
Reason: The maintainer-authored repair restores an established visible contract with a minimal change and preserves the narration update.

Regression provenance

Possible 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
Reviewed head: 90f3b8c3c15d6b38e06e73c05e27d53643888042

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Narration-only frame classification keeps the original intent (e7f0546: Keep narration inline while withholding independent identity and actions from non-owning work blocks.)
  • Provider-voice frame classification keeps the original intent (ca305f7: Require finalized messages before treating a group as provider speech so live streaming frames retain their avatar.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 2 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Labels

Label changes:

  • add P2: The regression hides assistant identity during streaming, while reply text and completion continue working.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The regression hides assistant identity during streaming, while reply text and completion continue working.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 11:46 PM ET / October 28, 2026, 03:46 UTC.

@steipete
steipete merged commit 859320f into main Oct 28, 2026
145 of 148 checks passed
@steipete
steipete deleted the fix/ci-narration-ui-avatar branch October 28, 2026 03:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
)

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.
vyctorbrzezowski added a commit that referenced this pull request Oct 30, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant