diff --git a/desktop/src/features/messages/ui/TypingIndicatorRow.tsx b/desktop/src/features/messages/ui/TypingIndicatorRow.tsx index aaaaf9afc2..ab1b875dd8 100644 --- a/desktop/src/features/messages/ui/TypingIndicatorRow.tsx +++ b/desktop/src/features/messages/ui/TypingIndicatorRow.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { + useManagedAgentLogQuery, useManagedAgentsQuery, useStopManagedAgentMutation, } from "@/features/agents/hooks"; @@ -71,6 +72,35 @@ function formatElapsed(startIso: string): string { return `${totalSeconds}s`; } +/** Compact ACP log preview — dark terminal block, last N lines. */ +function AgentLogPreview({ pubkey }: { pubkey: string }) { + const { data: logData, isLoading } = useManagedAgentLogQuery(pubkey, 10); + + if (isLoading) { + return ( +
+ Loading log… +
+ ); + } + + const trimmed = logData?.content?.trim(); + if (!trimmed) { + return null; + } + + return ( +
+
+        {trimmed}
+      
+
+ ); +} + type BotTypingPopoverContentProps = { botAgents: ManagedAgent[]; }; @@ -95,14 +125,17 @@ function BotTypingPopoverContent({ botAgents }: BotTypingPopoverContentProps) { return (
{botAgents.map((agent) => ( -
-
{agent.name}
+
+
+
{agent.name}
+
+ {agent.lastStartedAt ? formatElapsed(agent.lastStartedAt) : "—"} +
+
{agent.model && (
{agent.model}
)} -
- {agent.lastStartedAt ? formatElapsed(agent.lastStartedAt) : "—"} -
+
))}