Repository navigation
Description
Bug type
Regression / behavior bug (incorrect output without crash)
Summary
The assistant avatar in Control UI → Settings → Simple → Personal renders as a broken image when IDENTITY.md contains a valid workspace-relative avatar such as rei-avatar.png.
This appears to be a Quick Config-specific regression related to the previously fixed workspace-relative avatar issue #70700.
Steps to reproduce
- Put a valid image in the agent workspace, for example
rei-avatar.png. - Configure
IDENTITY.mdwith that workspace-relative avatar. - Start OpenClaw 2026.7.1 and open Control UI.
- Navigate to Settings → Simple → Personal.
- Inspect the Assistant identity card.
Expected behavior
The Personal card should use the resolved Gateway avatar endpoint/URL and display the same valid assistant avatar used by the rest of Control UI/WebChat.
Actual behavior
The card renders a broken <img> while correctly showing the source as IDENTITY.md and rei-avatar.png.
Source-level evidence
The Quick Config renderer passes:
assistantAvatar: assistantIdentity.avatar,
assistantAvatarUrl: assistantIdentity.avatar,That means the raw workspace-relative avatar value is supplied as both the source and URL. The identity state itself contains avatar, avatarSource, avatarStatus, and avatarReason, but no separately resolved avatarUrl. The rendering helper then treats the raw relative filename as an image URL, producing a broken request from the Control UI route.
Installed bundle:
dist/control-ui/assets/config-page-D3rkQ80r.js
OpenClaw version
2026.7.1 (2d2ddc4)
Operating system
macOS 11.6.5, Intel x86_64
Install method
npm global install
Related issue
- [Bug]: Control UI inconsistently handles workspace-relative agent avatars even when /avatar/{agentId} resolves correctly #70700 — workspace-relative avatars were previously reported and marked completed. This report is specifically for the new Settings → Simple → Personal card in 2026.7.1.
Impact and severity
Cosmetic, but 100% reproducible for workspace-relative assistant avatars in this card.
Suggested fix direction
Use the same resolved /avatar/<agentId> path or avatar metadata loader as the other Control UI avatar surfaces. Avoid assigning the raw workspace-relative identity.avatar value directly to an <img src>.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
Igallta commentedon Jul 15, 2026
One additional, distinct failure mode in the same Personal card: the rendered assistant
<img>has no image-error fallback.When the raw workspace-relative path is rejected or resolves to the wrong Control UI-relative URL, the component leaves the browser's broken-image icon visible. It does not switch to the text avatar or OpenClaw fallback logo, even though both fallback renderers already exist in the component.
So this issue covers two concrete defects:
error/onerrorstate and fallback rendering.A fix should normalize the URL first and still retain an image-load error fallback for deleted/moved files and transient endpoint failures.
clawsweeper commentedon Jul 16, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 15, 2026, 10:12 PM ET / July 16, 2026, 02:12 UTC.
Summary
Keep this issue open. Current main now distinguishes the raw avatar source from a resolved
assistantAvatarUrland tests the/avatar/mainroute, so the title regression appears addressed after v2026.7.1; however, the reported browser image-load error fallback is not demonstrated by the inspected tests, and exact fix/release provenance could not be established conservatively.Likely related people: @BunsDev is the strongest recent routing candidate for Quick Settings avatar work; @dlauer is connected to the original Control UI identity-avatar implementation.
Reproducibility: no. high-confidence current-main reproduction is established for the raw-relative-URL defect because current tests now pass a resolved
/avatar/mainURL. The separate browser image-load failure remains source-plausible but lacks direct current-main runtime proof.Root-cause cluster
Relationship:
canonicalCanonical: #107853
Summary: This issue is the canonical remaining report for the newly added Simple Personal card; the older closed issue established the same resolved-avatar invariant on earlier Control UI surfaces.
Members:
same_root_cause: [Bug]: Control UI inconsistently handles workspace-relative agent avatars even when /avatar/{agentId} resolves correctly #70700 - Both reports concern Control UI surfaces bypassing the resolved Gateway avatar route for supported workspace-relative identity avatars, but this issue adds a newer card and image-load fallback behavior.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Next step
The remaining image-error fallback is a bounded UI repair, but the worker should first confirm whether current
quick.tsalready handles the browsererrorevent and stop if no defect remains.Review details
Best possible solution:
Keep the resolved
assistantAvatarUrlas the card’s image source, add component state that switches to the existing text or logo fallback on an imageerrorevent, and cover both workspace-relative resolution and transient/deleted-image failure in focused UI tests.Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction is established for the raw-relative-URL defect because current tests now pass a resolved
/avatar/mainURL. The separate browser image-load failure remains source-plausible but lacks direct current-main runtime proof.Is this the best way to solve the issue?
Yes in part: routing through the canonical resolved avatar URL is the narrowest consistent fix. The complete solution should also handle an actual image
errorevent rather than relying only on metadata-time missing-file fallback.AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against d42dfed3f256.
Label changes
Label changes:
P3: The defect is confined to avatar presentation in one settings card and does not block setup, messaging, or core runtime operation.impact:ux-friction: A broken assistant image and inconsistent fallback visibly undermine the otherwise simplified Personal settings flow.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.Label justifications:
P3: The defect is confined to avatar presentation in one settings card and does not block setup, messaging, or core runtime operation.impact:ux-friction: A broken assistant image and inconsistent fallback visibly undermine the otherwise simplified Personal settings flow.Evidence reviewed
Acceptance criteria:
What I checked:
assistantAvatarUrl: "/avatar/main"and asserts that the card renders/avatar/main, rather than the workspace-relative source. (ui/src/pages/config/quick.test.ts:498, d42dfed3f256)/apple-touch-icon.pngwhen avatar resolution returns no URL and reports a missing file, but the inspected coverage does not demonstrate anerrorevent from an initially valid image URL. (ui/src/pages/config/quick.test.ts:533, d42dfed3f256)ui/src/pages/config/quick.test.ts:498, 2d2ddc43d0dc)/avatar/<agentId>endpoint; this issue identifies the newer Simple Personal card and a separate image-load fallback gap.CHANGELOG.md:1, ab237fe7b0e9)Likely related people:
ui/src/pages/config/quick.ts,ui/src/pages/config/quick.test.ts)ui/src/pages/config/quick.ts,ui/src/ui/app-render.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Jul 29, 2026
Thank you for documenting the exact raw-relative-avatar failure. Verified fixed on current main: merged #110445 deletes the old Settings / Simple / Personal card and its raw-avatar URL assignment, and settings-targets.test.ts routes Personal to the canonical /settings/profile identity page. The current avatar loader fixes in #114444 and #114496 use resolved Gateway-owned avatar URLs; I independently ran the real-Chromium avatar tests, which fetch /avatar/main and verify visible authenticated blob-backed images with naturalWidth, alongside the settings and identity component regressions. Closing as completed by #110445, #114444, and #114496.