Skip to content

[Bug]: Control UI Simple Personal card uses workspace-relative assistant avatar as img URL #107853

Description

@Igallta

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

  1. Put a valid image in the agent workspace, for example rei-avatar.png.
  2. Configure IDENTITY.md with that workspace-relative avatar.
  3. Start OpenClaw 2026.7.1 and open Control UI.
  4. Navigate to Settings → Simple → Personal.
  5. 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

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>.

Activity

  1. Igallta commented on Jul 15, 2026

    @Igallta
    Author

    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:

    1. the wrong/raw avatar source is passed as the URL;
    2. a failed image request is not handled with error/onerror state 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.

  2. added
    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.
    impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    on Jul 16, 2026
  3. clawsweeper commented on Jul 16, 2026

    @clawsweeper
    Contributor

    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 assistantAvatarUrl and tests the /avatar/main route, 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/main URL. The separate browser image-load failure remains source-plausible but lacks direct current-main runtime proof.

    Root-cause cluster
    Relationship: canonical
    Canonical: #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:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Ways to help us reproduce this

    • Include the exact command, prompt, or workflow that triggered it.
    • Add expected vs actual behavior.

    Next step
    The remaining image-error fallback is a bounded UI repair, but the worker should first confirm whether current quick.ts already handles the browser error event and stop if no defect remains.

    Review details

    Best possible solution:

    Keep the resolved assistantAvatarUrl as the card’s image source, add component state that switches to the existing text or logo fallback on an image error event, 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/main URL. 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 error event rather than relying only on metadata-time missing-file fallback.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The resolved-URL portion appears fixed only on current main; the exact introducing fix SHA and first containing release were not established.
    • The current inspected tests cover missing metadata, not a browser image request that fails after a URL was selected, so the second reported failure mode may remain.

    Codex review notes: model internal, reasoning high; reviewed against d42dfed3f256.

    Label changes

    Label changes:

    • add P3: The defect is confined to avatar presentation in one settings card and does not block setup, messaging, or core runtime operation.
    • add impact:ux-friction: A broken assistant image and inconsistent fallback visibly undermine the otherwise simplified Personal settings flow.
    • add 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:

    • node scripts/run-vitest.mjs ui/src/pages/config/quick.test.ts
    • Run Control UI browser or Playwright proof showing a workspace-relative avatar in the Simple Personal card and the fallback after a forced failed image request
    • git diff --check

    What I checked:

    Likely related people:

    • @BunsDev: Recent merged Quick Settings work includes assistant-avatar overrides and adjacent Personal-card behavior credited to this contributor. (role: recent area contributor; confidence: high; commits: ab237fe7b0e9; files: ui/src/pages/config/quick.ts, ui/src/pages/config/quick.test.ts)
    • @dlauer: The original Control UI identity-avatar and base-path resolution work is credited to this contributor in the feature history. (role: introduced behavior; confidence: medium; files: ui/src/pages/config/quick.ts, ui/src/ui/app-render.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  4. steipete commented on Jul 29, 2026

    @steipete
    Contributor

    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.

  5. locked as resolved and limited conversation to collaborators on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions