Skip to content

fix(ui): restore agent avatars beside streamed responses - #199015

Merged
steipete merged 1 commit into
mainfrom
fix/ci436101-streaming
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci436101-streaming

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: an agent avatar disappears when its response starts streaming after acknowledgement.

User Impact

User impact: the assistant identity stays visible beside the streamed answer. Reasoning-only steps keep their quiet presentation.

Why This Change Was Made

The reasoning-only classification introduced in #198858 also matched an empty retained run-frame shell because every() is true for an empty array. Require an actual message, as the neighboring voice-only classification already does. One assertion extends the existing retained-frame regression; the original streaming E2E remains unchanged.

Evidence

  • Scheduled main run 43610133604 fails chat-flow.streaming.e2e.test.ts > keeps the pending telemetry row stable through acknowledgement and streaming at its avatar assertion. The exact case and added regression both fail on the pinned base and pass with this fix.
  • Original streaming case passes (14.02s total); owner/sibling unit tests 58/58; reasoning visibility 6/6. UI and component-test typechecks use the default typechecker and pass. Scoped lint, formatting and diff checks pass; lint retains one pre-existing capture warning.
  • Independent Codex autoreview of the complete two-line candidate against 1ac07b333581 completed at P0–P2 with no actionable findings. Local ClawSweeper is unavailable on this host (its CLI has not been built); one hosted ClawSweeper review was requested through the documented maintainer fallback.
  • Production +1 line, test +1 line; no new owner, state, effect or compatibility path. No configuration or migration.

Other failures from the scheduled baseline remain separate: logs-scroll.e2e.test.ts desktop WebKit containment and chat-history-reading-stability.e2e.test.ts WebKit prefix readiness remain unresolved; the empty-model spacing failure is covered by #198986. This PR does not claim those passing or repaired.

The before/after images below use the same synthetic mocked-Gateway scenario; the before is the scheduled CI failure and the after is the focused fixed replay.

Before: streamed answer loses the assistant avatar

After: assistant avatar stays beside the streamed answer

PR CI run 43616186592 exposed an unrelated fixture readiness failure in cron-page.lifecycle.test.ts > preserves catalog provider identity through model selection and save (catalog-needed): the editor element wait begins before its lazy import is settled. The avatar predicate cannot execute in this empty-job editor flow; the Cron transcript starts closed and its chat renderer is lazy and guarded by a selected run. The focused baseline replay passes, which is not claimed as reproduction or a repair. The Cron fixture is being investigated separately; this failed CI result is retained for the authorized inherited-failure landing route.

Require an actual reasoning message before treating an assistant group as a turn block. Empty retained run-frame shells must keep their streamed answer identity. Extend the existing retained-frame regression and preserve the original streaming E2E avatar assertion.
@clawsweeper

clawsweeper Bot commented Nov 14, 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 Nov 14, 2026
@steipete
steipete marked this pull request as ready for review November 14, 2026 16:32
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T16:34:36.135671Z 60ec248 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.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@steipete
steipete enabled auto-merge (squash) November 14, 2026 16:38
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Require an actual message before classifying an assistant group as reasoning-only, preserving avatars on empty streaming frames.

Example: After acknowledgement, the assistant streams “The streamed response is now visible.”

  • Before: The answer appears without its assistant avatar.
  • After: The assistant avatar remains beside the streamed answer.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A minimal, source-verified repair with directly inspected visual proof and a focused extension of existing regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the production Control UI rendering path with synthetic mocked-Gateway acknowledgement and streaming events, showing the missing avatar restored beside the same answer.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The assistant avatar disappears when an acknowledged response begins streaming.
Reason: The maintainer-authored repair restores an established identity contract while preserving the approved reasoning presentation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR restores the existing streaming-avatar contract with a minimal classifier fix; no actionable defects were found, and current-head CI is still running.

Priority: P2
Reviewed head: 60ec24861ea61a3a073b94f7f6a2274dff6f8d58

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI builds retained run-frame shells from grouped messages and live stream parts, then derives whether the rendered group displays assistant identity and footer chrome.

flowchart LR
  A[Gateway chat events] --> B[Transcript grouping]
  B --> C[Agent run frame]
  C --> D[Message group classifier]
  D --> E[Assistant avatar and answer]
Loading

Technical review

Best possible solution:

Keep the nonempty-message check in the existing classifier and retain the focused avatar regression assertion.

Do we have a high-confidence way to reproduce the issue?

The retained-frame producer supplies messages: [] with visibleContent: none, making the original every() condition true and suppressing the avatar; supplied browser screenshots corroborate this path, without a reviewer-run reproduction.

Is this the best way to solve the issue?

This is the smallest complete repair: constrain the reasoning-only classification at its existing owner, preserving actual reasoning rows and user avatar preferences.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 94b16d0f4a1e.

Provenance checked

  • Reasoning-only turn-block classification keeps the original intent (db1708f: Render actual reasoning-only steps without separate identity or footer so they read alongside tool activity.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +1, Tests +1. Total +2 across 2 files. Added test files: 0.

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

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Assistant identity disappears during streaming, but the response remains visible and usable.
  • 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: Assistant identity disappears during streaming, but the response remains visible and usable.
  • 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 November 14, 2026, 11:38 AM ET / 16:38 UTC.

@steipete
steipete disabled auto-merge November 14, 2026 16:46
@steipete
steipete merged commit 976a4fb into main Nov 14, 2026
161 of 167 checks passed
@steipete
steipete deleted the fix/ci436101-streaming branch November 14, 2026 16:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…9015)

Require an actual reasoning message before treating an assistant group as a turn block. Empty retained run-frame shells must keep their streamed answer identity. Extend the existing retained-frame regression and preserve the original streaming E2E avatar assertion.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant