mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #22486] [MERGED] fix: add profile image fallback handlers for model and user avatars in remaining areas #65580
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22486
Author: @silentoplayz
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/16/2026
Merged by: @tjbck
Base:
dev← Head:fix/model-icon-fallbacks📝 Commits (3)
451d411fix(ui): add profile image fallback handlers for models and userse2b0f14Update UserList.sveltedabf285fix(ui): add profile image fallback handlers for models on New Chat page📊 Changes
8 files changed (+30 additions, -0 deletions)
View changed files
📝
src/lib/components/admin/Users/UserList.svelte(+3 -0)📝
src/lib/components/channel/MessageInput/MentionList.svelte(+6 -0)📝
src/lib/components/channel/Messages/Message.svelte(+6 -0)📝
src/lib/components/chat/ChatPlaceholder.svelte(+3 -0)📝
src/lib/components/chat/MessageInput/Commands/Models.svelte(+3 -0)📝
src/lib/components/chat/ModelSelector/ModelItem.svelte(+3 -0)📝
src/lib/components/chat/Placeholder.svelte(+3 -0)📝
src/lib/components/layout/Sidebar/PinnedModelItem.svelte(+3 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
on:errorfallback handlers to model and user profile images in several UI components to prevent broken icons when images fail to load.MentionList,Message,Commands/Models(command list),ModelSelector/ModelItem, andPinnedModelItemin Sidebar./favicon.pngfor all model/user profile image tags.Fixed
Additional Information
Changes were implemented across:
src/lib/components/channel/MessageInput/MentionList.sveltesrc/lib/components/channel/Messages/Message.sveltesrc/lib/components/chat/MessageInput/Commands/Models.sveltesrc/lib/components/chat/ModelSelector/ModelItem.sveltesrc/lib/components/layout/Sidebar/PinnedModelItem.sveltesrc/lib/components/admin/Users/UserList.sveltesrc/lib/components/chat/ChatPlaceholder.sveltesrc/lib/components/chat/Placeholder.svelteThis fix follows the pattern established in PRs #21730, #21897, and #22485.
Screenshots or Videos
Before -
src/lib/components/channel/MessageInput/MentionList.svelteAfter -
src/lib/components/channel/MessageInput/MentionList.svelteBefore -
src/lib/components/channel/Messages/Message.svelteAfter -
src/lib/components/channel/Messages/Message.svelteBefore -
src/lib/components/chat/MessageInput/Commands/Models.svelteAfter -
src/lib/components/chat/MessageInput/Commands/Models.svelteBefore -
src/lib/components/chat/ModelSelector/ModelItem.svelteAfter -
src/lib/components/chat/ModelSelector/ModelItem.svelteBefore -
src/lib/components/layout/Sidebar/PinnedModelItem.svelteAfter -
src/lib/components/layout/Sidebar/PinnedModelItem.svelteBefore -
src/lib/components/admin/Users/UserList.svelteAfter -
src/lib/components/admin/Users/UserList.svelteBefore -
src/lib/components/chat/ChatPlaceholder.svelteAfter -
src/lib/components/chat/ChatPlaceholder.svelteIt's worth mentioning that the 'After' screenshots might not always reflect the fix, since proper image loading can be hit-or-miss. User and model avatars can fail to load properly, and in that case, should default to the favicon image, but this can be very tricky to capture accurately within a screenshot.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.