diff --git a/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx b/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx index ddc5901a52..6fb6992a18 100644 --- a/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx +++ b/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx @@ -1,5 +1,6 @@ -import { Bot, Brain, ChevronDown, Radio, TerminalSquare } from "lucide-react"; +import { Brain, ChevronDown, Radio, TerminalSquare } from "lucide-react"; +import { ProfileAvatar } from "@/features/profile/ui/ProfileAvatar"; import { cn } from "@/shared/lib/cn"; import { Markdown } from "@/shared/ui/markdown"; import type { TranscriptItem } from "./agentSessionTypes"; @@ -8,10 +9,12 @@ import { formatTranscriptTime } from "./agentSessionUtils"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/shared/ui/tooltip"; export function AgentSessionTranscriptList({ + agentAvatarUrl, agentName, emptyDescription, items, }: { + agentAvatarUrl: string | null; agentName: string; emptyDescription: string; items: TranscriptItem[]; @@ -30,12 +33,16 @@ export function AgentSessionTranscriptList({
{items.map((item) => (
- +
))}
@@ -43,14 +50,22 @@ export function AgentSessionTranscriptList({ } function TranscriptItemView({ + agentAvatarUrl, agentName, item, }: { + agentAvatarUrl: string | null; agentName: string; item: TranscriptItem; }) { if (item.type === "message") { - return ; + return ( + + ); } if (item.type === "tool") { return ; @@ -65,9 +80,11 @@ function TranscriptItemView({ } function MessageItem({ + agentAvatarUrl, agentName, item, }: { + agentAvatarUrl: string | null; agentName: string; item: Extract; }) { @@ -89,9 +106,12 @@ function MessageItem({ > {isAssistant ? (
- - - + {agentName}
@@ -181,7 +201,7 @@ function LifecycleItem({ return (
diff --git a/desktop/src/features/agents/ui/ManagedAgentSessionPanel.tsx b/desktop/src/features/agents/ui/ManagedAgentSessionPanel.tsx index eecfd7e75c..0800435073 100644 --- a/desktop/src/features/agents/ui/ManagedAgentSessionPanel.tsx +++ b/desktop/src/features/agents/ui/ManagedAgentSessionPanel.tsx @@ -25,6 +25,7 @@ import { useObserverEvents } from "./useObserverEvents"; type ManagedAgentSessionPanelProps = { agent: ManagedAgent; + agentAvatarUrl?: string | null; channelId?: string | null; className?: string; emptyDescription?: string; @@ -34,6 +35,7 @@ type ManagedAgentSessionPanelProps = { export function ManagedAgentSessionPanel({ agent, + agentAvatarUrl = null, channelId = null, className, emptyDescription = "Mention this agent in a channel to watch the next turn.", @@ -78,6 +80,7 @@ export function ManagedAgentSessionPanel({ ) : null} persona.id === agent.personaId, + ); + const agentAvatarUrl = agentPersona?.avatarUrl ?? null; useEscapeKey(onClose, isOverlay); const { ref: scrollRef, onScroll } = useStickToBottom(); @@ -87,7 +94,13 @@ export function AgentSessionThreadPanel({ )}
- +

{agent.name} @@ -151,6 +164,7 @@ export function AgentSessionThreadPanel({ > +
{depthGuideOffsets.length > 0 ? (
onOpenThread(message)}