Repository navigation
fix(ui): allow relative URLs in avatar validation - #1457
Merged
steipete merged 2 commits intoJan 22, 2026
Merged
Conversation
The isAvatarUrl check only accepted http://, https://, or data: URLs,
but the /avatar/{agentId} endpoint returns relative paths like /avatar/main.
This caused local file avatars to display as text instead of images.
Fixes avatar display for locally configured avatar files.
The frontend fix alone wasn't enough because:
1. serveIndexHtml() was injecting the raw avatar filename into HTML
2. agent.identity.get RPC was returning raw filename, overwriting the
HTML-injected value
Now both paths resolve local file avatars (*.png, *.jpg, etc.) to the
/avatar/{agentId} endpoint URL.
Contributor
|
steipete
added a commit
that referenced
this pull request
Jan 22, 2026
steipete
added a commit
that referenced
this pull request
Jan 22, 2026
Contributor
dustin-olenslager
pushed a commit
to dustin-olenslager/ironclaw-supreme
that referenced
this pull request
Mar 24, 2026
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
…validation fix(ui): allow relative URLs in avatar validation
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
ogt-redknie
pushed a commit
to ogt-redknie/OPENX
that referenced
this pull request
May 2, 2026
…validation fix(ui): allow relative URLs in avatar validation
ogt-redknie
pushed a commit
to ogt-redknie/OPENX
that referenced
this pull request
May 2, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
…validation fix(ui): allow relative URLs in avatar validation
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
4 of 15 tasks
jameslcowan
pushed a commit
to jameslcowan/openclaw
that referenced
this pull request
Jun 2, 2026
zeekay
pushed a commit
to Dream-AI-4444/moltbot
that referenced
this pull request
Sep 11, 2026
…validation fix(ui): allow relative URLs in avatar validation
zeekay
pushed a commit
to Dream-AI-4444/bot
that referenced
this pull request
Sep 11, 2026
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
…validation fix(ui): allow relative URLs in avatar validation
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Local file avatars configured in
identity.avatardisplay as text instead of images in the webchat UI.Root Cause (3-layer bug)
1. Frontend - URL validation too strict
isAvatarUrl()only acceptedhttp://,https://, ordata:URLs:2. Backend HTML injection
serveIndexHtml()injected the raw avatar filename into HTML instead of the resolved URL.3. Backend RPC
agent.identity.getreturned the raw filename, which overwrote the HTML-injected value when the frontend fetched identity.Fix
//avatar/{agentId}URL before injectionTesting
identity.avatar: "myavatar.png"in agent configRegression from #1329 refactor in 8544df3.