Repository navigation
fix(ui): restore agent avatars beside streamed responses - #199015
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
Codex Review Summary: ✅ CompletedThis 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. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesRequire 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.”
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 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +1. Total +2 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 14, 2026, 11:38 AM ET / 16:38 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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.
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
chat-flow.streaming.e2e.test.ts > keeps the pending telemetry row stable through acknowledgement and streamingat its avatar assertion. The exact case and added regression both fail on the pinned base and pass with this fix.1ac07b333581completed 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.Other failures from the scheduled baseline remain separate:
logs-scroll.e2e.test.tsdesktop WebKit containment andchat-history-reading-stability.e2e.test.tsWebKit 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.
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.