Repository navigation
fix: show agent avatars with streamed responses - #186044
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 changesRequire a nonempty message list before suppressing a group's avatar as a voice-only transcript. Example: An avatar-enabled agent:main:main conversation streams “The streamed response is now visible.” before finalization.
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 makes a focused correction to a current-main avatar bug, with no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI turns Gateway chat events into run frames; message-group classification determines whether those frames render their existing agent identity. flowchart LR
A[Gateway chat events] --> B[Transcript grouping]
B --> C[Agent run frame]
C --> D[Message group classification]
D --> E[Avatar rendering]
C --> F[Streaming text]
Technical reviewBest possible solution: Keep this nonempty-list correction in the existing classification owner while preserving voice-only suppression and avatar placement. Do we have a high-confidence way to reproduce the issue? Current source establishes the complete failure path from a stream-only frame's empty message list to avatar suppression; this review executed no product code. Is this the best way to solve the issue? The guard repairs the classification at its existing owner without new state, identity requests, loading delays, or changes to genuine voice transcripts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b66bda426ccc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +3. Total +4 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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:11 AM ET / 15:11 UTC. |
|
Merged via squash.
|


Fixes #186026.
What Problem This Solves
Agent avatars appear only after streamed replies finish, although the response text is already visible and the identity is known.
User Impact
The existing agent avatar appears with the first streamed text. Text continues immediately and uses the same identity and image-loading behavior.
Why This Change Was Made
A live run frame starts with no finalized messages. An empty list passed the voice-transcript-only check and suppressed its avatar. Require a nonempty list for that check, preserving genuine voice-only groups.
The change adds one production guard and extends the existing streaming test. There are no new test cases, presentation state, identity requests, or caches.
Evidence
openclaw/ci-gate.43dc38e6..e384668bis scoped-clean for P0–P2. Local ClawSweeper was unavailable; its existing hosted review of this exact head also found no code issues.Real Gateway verification
Reproduced with an isolated real Gateway and live model. The frontend baseline is current
mainat591b7795fe8; the comparison uses that same tree with only this PR's production guard. The Gateway was unchanged between runs.The cold case held delivery of the real
agent.identity.getresponse until the first streamed text was visible. The warm case reused the delivered identity. Chat frames and identity payloads were forwarded unchanged; no DOM or styling was injected.The first text appeared while the identity response was still held. The existing fallback appeared immediately with the fix; text continued normally when identity was released and through completion. These runs verify ordering, not model response speed.
The recordings below show the cold case before, then after, at original speed. The identical crop removes unrelated account and model controls. Wording varies between the real model turns.
before-real-streaming.mp4
after-real-streaming.mp4
Earlier mocked-Gateway regression proof
The first streamed text, with the same message and viewport. Before, the avatar appears only after the response finishes; afterward it is present from the first text while streaming continues. Mocked Gateway, real Control UI renderer.
Real-time recordings, before then after.
186044-before.mp4
186044-after.mp4