Repository navigation
fix(ui): restore configured agent avatars in chat - #139873
Conversation
Use the resolved agent avatar for saved and streaming replies when the transcript shows an avatar gutter. Keep fallback icons and compact-layout avatars suppressed, and remove the redundant message-rendering wrapper. Fixes #139594. Thanks @RobertOnline69 for the report.
|
🦞👀 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. Reviewed September 6, 2026, 3:43 AM ET / 07:43 UTC. ClawSweeper reviewWhat this changesRestores configured agent images and text avatars beside saved and streaming chat replies, preserves compact layouts, and adds documentation and regression coverage. Merge readiness✅ Ready for maintainer review Keep open as a useful, well-supported repair: current main still suppresses configured avatars. No actionable defects were found in the introduced changes, and the final commit completes CI registration without changing the previously reviewed rendering behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI resolves an agent’s configured identity and combines it with session layout and transcript messages. Shared rendering options then determine whether saved and streaming assistant replies display that avatar. flowchart TD
A[Configured agent identity] --> B[Resolve image or text avatar]
C[Session layout] --> D{Avatar gutter enabled?}
B --> D
D -->|Configured avatar and gutter| E[Show assistant avatar]
D -->|Otherwise| F[Omit assistant avatar]
E --> G[Saved and streaming replies]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Tests +195, Docs 0, Config +1. Total +193 across 8 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use the existing resolved agent identity consistently in avatar gutters while keeping generic fallback icons and compact-layout avatars suppressed. Do we have a high-confidence way to reproduce the issue? Yes: configure an agent avatar and load assistant replies in a gutter-layout transcript; current main unconditionally suppresses the avatar. This review verified the source mechanism without executing a reproduction. Is this the best way to solve the issue? Yes: the shared rendering predicate is a narrow repair that reuses existing avatar resolution and preserves layout decisions, with complementary rendering and real-Gateway evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2a039fc97608. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
The final-head replay and both proof requests are complete. Revision |
|
Merged via squash.
|
* fix(ui): restore configured agent avatars in chat Use the resolved agent avatar for saved and streaming replies when the transcript shows an avatar gutter. Keep fallback icons and compact-layout avatars suppressed, and remove the redundant message-rendering wrapper. Fixes openclaw#139594. Thanks @RobertOnline69 for the report. * test(ui): derive avatar layouts through session identity * test(ui): include avatar proof in real-gateway CI
Closes #139594. Thanks @RobertOnline69 for the report.
What Problem This Solves
Fixes an issue where users with a configured agent avatar saw the agent's name but no avatar beside assistant replies in the Control UI transcript, even though the image appeared elsewhere in the UI.
Why This Change Was Made
The transcript suppressed every assistant avatar, including configured images and text avatars. Its shared rendering options now show a resolved configured avatar when the transcript uses an avatar gutter. Saved and streaming replies follow the same decision, preserving compact/subagent layouts and the omission of generic fallback icons. A redundant message-rendering wrapper was removed.
History inspection traced the suppression to
2873fbbc5606(#121405), already included in both v2026.9.1 and v2026.9.2. No avatar-suppression change was introduced between those tags. This repair restores configured identity while preserving the earlier fallback-icon reduction.User Impact
Configured agent images and text avatars appear beside assistant replies wherever transcript avatars are enabled. User avatars, compact layouts, and CSS remain unchanged.
Evidence
Remote before/after
Provider: Blacksmith Testbox, through the repository Crabbox wrapper. The scenario builds the candidate, starts a real Gateway on an isolated state directory and free loopback port, configures a workspace-relative PNG, seeds a synthetic owner, creates a session through Gateway RPC, and loads a persisted assistant reply in Chromium.
c54319089356fd06bc58f3d749c30ad98e0912adtbx_01m1tprbqdhhhp5dvz6at9ws3sdecodedWidth=0failure1d73309e4bd3efe81868f1817743b11dd83aa2b1tbx_01m1tsv4absrzvbhqk06v7vtjzThe final wrapper attested source tree
2d25d240f2a165f061e998b3ab414c3bc5312b58; the run verified source/test hashes before execution. Chromium decoded one configured assistant image at 128px through an authenticated blob URL. The served bundle changed from/assets/index-DefhjbqO.jsto/assets/index-BejWP9fn.js(final SHA-256269279c5866030916695f777b0bf704a064cfd2e208ebffa38ac2e0138483c2a). Captures were inspected in full and contain synthetic identities only. All task Testbox leases were stopped after retrieving artifacts.The browser proof loads a synthetic persisted transcript; streaming and compact/subagent placement use deterministic rendering tests. No external model turn is claimed.
Initial CI correctly caught omitted registrations in the real-Gateway workflow command and independent inventory assertions; those are fixed and now proved above. The unrelated sandbox hash failure on both this PR and main was traced to shared
/tmp/workspacetest pollution and is tracked separately in #139902. No assertions or gates were weakened.Before
After