diff --git a/www/app.js b/www/app.js index 5f8c110..15da2bb 100644 --- a/www/app.js +++ b/www/app.js @@ -4541,7 +4541,11 @@ function renderMessages() { messagesDiv.innerHTML = currentConversation.messages.map((msg, index) => { const isUser = msg.role === 'user'; - const avatar = isUser ? '👤' : '🤖'; + // 用户头像使用实际头像,AI头像使用智能体头像或默认 + const avatar = isUser + ? (currentUser?.avatar || '👤') + : (currentAgent?.avatar || '🤖'); + const avatarHtml = isUser ? renderAvatar(avatar) : avatar; // 处理消息内容(支持图片) let contentHtml = ''; @@ -4616,7 +4620,7 @@ function renderMessages() { return `
-
${avatar}
+
${avatarHtml}
${searchHtml} ${thinkingHtml}