From 89aac826635a2e91a9265e0d69f36ee771c25502 Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 12 Jun 2026 17:54:36 +0800 Subject: [PATCH] Fix: chat/agent -- Default avatar is not displaying correctly. (#15948) ### What problem does this PR solve? Fix: chat/agent -- Default avatar is not displaying correctly. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/message-item/index.tsx | 2 ++ web/src/components/next-message-item/index.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/components/message-item/index.tsx b/web/src/components/message-item/index.tsx index 1c0048e4ea..f2a9eb8421 100644 --- a/web/src/components/message-item/index.tsx +++ b/web/src/components/message-item/index.tsx @@ -51,6 +51,7 @@ const MessageItem = ({ showLikeButton = true, showLoudspeaker = true, visibleAvatar = true, + nickname, }: IProps) => { const { theme } = useTheme(); const isAssistant = item.role === MessageType.Assistant; @@ -98,6 +99,7 @@ const MessageItem = ({ className="size-10" avatar={avatar ?? '/logo.svg'} isPerson + name={nickname} /> ) : avatarDialog ? ( {visibleAvatar && (item.role === MessageType.User ? ( - + ) : avatarDialog || agentName ? (