fix(agent-ui): show avatar in canvas mode and remove duplicate loading copy
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-21 03:29:18 +08:00
parent 545f7d4d44
commit 40d51d1293
2 changed files with 18 additions and 4 deletions

View File

@ -6060,6 +6060,24 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
</div>
<div className="flex items-center gap-2 flex-shrink-0">
{activeComposerMode === "agent" ? (
<div
className="h-8 w-8 overflow-hidden rounded-full border border-[#cfd4dc] bg-white flex items-center justify-center"
title={selectDisplayModel?.displayName || "Agent模式"}
aria-label={selectDisplayModel?.displayName || "Agent模式"}
>
{selectDisplayModel?.avatarUrl ? (
<img
src={selectDisplayModel.avatarUrl}
alt={selectDisplayModel.displayName || "Agent模式"}
className="h-full w-full object-cover"
/>
) : (
<Sparkles className="h-4 w-4 text-[#8b95a7]" />
)}
</div>
) : null}
{activeComposerMode === "image" ? (
<Button
variant="ghost"

View File

@ -61,10 +61,6 @@ export const ImageGenerationLoading = memo(
<span className="font-medium">开始生成</span>
</div>
<div className="text-[15px] leading-7 text-[#3a4352]">
现在开始生成设计图。
</div>
<div className="flex items-center gap-2 text-[#a8b1bf]">
<CircleDot className="h-3.5 w-3.5 fill-current" />
<span className="text-[14px]">{resolvedModelName}</span>