Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(conversations): show live transcript while agent is thinking

Steven Enamakelbb82f8f6bcd4
diff --git a/app/src/features/conversations/components/ToolTimelineBlock.tsx b/app/src/features/conversations/components/ToolTimelineBlock.tsx
index 4975148cc4..b768ddd097 100644
--- a/app/src/features/conversations/components/ToolTimelineBlock.tsx
+++ b/app/src/features/conversations/components/ToolTimelineBlock.tsx
@@ -418,6 +418,10 @@ export function ToolTimelineBlock({
<ProcessingTranscriptView
transcript={transcript}
entries={ordered}
+ // Keep the trailing thought expanded while the turn runs, so a
+ // model that is still reasoning after its last tool step shows
+ // progress instead of a collapsed 💭 row.
+ live={turnActive ?? isRunning}
renderSubagent={subagent => (
<AssistantUiSubagentCall
activity={subagent}
diff --git a/app/src/features/conversations/components/aui/AgentInsightsSlot.tsx b/app/src/features/conversations/components/aui/AgentInsightsSlot.tsx
index 97296c5d47..80250a0fb0 100644
--- a/app/src/features/conversations/components/aui/AgentInsightsSlot.tsx
+++ b/app/src/features/conversations/components/aui/AgentInsightsSlot.tsx
@@ -3,6 +3,7 @@ import type {
ProcessingTranscriptItem,
ToolTimelineEntry,
} from '../../../../store/chatRuntimeSlice';
+import { ProcessingTranscriptView } from '../ProcessingTranscriptView';
import { ToolTimelineBlock } from '../ToolTimelineBlock';
export interface AgentInsightsSlotProps {
@@ -86,6 +87,27 @@ export function AgentInsightsSlot({
// panel rather than a second, divergent rendering of the turn.
transcript={transcript}
/>
+ ) : turnActive ? (
+ // In flight with no tool call yet — the time-to-first-token window,
+ // where a reasoning model streams only `thinking_delta`s. Render the
+ // live transcript inline (trailing thought expanded) so the user sees
+ // the agent working instead of a static opener; the timeline above
+ // takes over the moment the first tool call lands.
+ <div className="space-y-1.5" data-testid="agent-insights-live">
+ <button
+ type="button"
+ onClick={onViewWholeRun}
+ data-testid="view-process-source"
+ className="flex items-center gap-1.5 px-1 py-1 text-left">
+ <span className="text-[13px] font-medium text-content-muted">
+ {t('conversations.agentTaskInsights.title')}
+ </span>
+ <span className="text-[13px] font-medium text-primary-600 dark:text-primary-300">→</span>
+ </button>
+ <div className="px-1">
+ <ProcessingTranscriptView transcript={transcript} entries={entries} live />
+ </div>
+ </div>
) : (
// Transcript-only turn: reasoning/narration was streamed but no tool
// calls were made, so the inline step timeline is empty. The thoughts