Skip to content

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

fix(workflow): handle missing assistant message in chat

Steven Enamakel0a76d9a0c509
diff --git a/app/src/components/flows/WorkflowCopilotPanel.tsx b/app/src/components/flows/WorkflowCopilotPanel.tsx
index 89d47c3f62..b79ea3f5d3 100644
--- a/app/src/components/flows/WorkflowCopilotPanel.tsx
+++ b/app/src/components/flows/WorkflowCopilotPanel.tsx
@@ -31,7 +31,7 @@ import { Thread, type ThreadComponents } from '@/components/assistant-ui/thread'
import createDebug from 'debug';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
-import { AssistantUiInferenceStatus } from '../../features/conversations/components/AssistantUiInferenceStatus';
+import { AgentRunningStatus } from '../../features/conversations/aui/AgentRunningStatus';
import { ChatSources } from '../../features/conversations/components/aui/ChatSources';
import { SubagentDrawerHost } from '../../features/conversations/components/aui/subagentDrawerHost';
import { TranscriptOverlays } from '../../features/conversations/components/aui/TranscriptOverlays';
@@ -679,7 +679,7 @@ export default function WorkflowCopilotPanel({
const components = useMemo<ThreadComponents>(
() => ({
ToolFallback: ChatToolFallback,
- RunningStatus: AssistantUiInferenceStatus,
+ RunningStatus: AgentRunningStatus,
SourceGroup: ChatSources,
Welcome: CopilotWelcome,
Composer: CopilotComposer,
diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsx
index 04495eb0a7..05400da6f7 100644
--- a/app/src/features/conversations/components/AssistantUiChat.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.tsx
@@ -289,7 +289,7 @@ export function AssistantUiChat({
ComposerIdleAction,
// Phase / reasoning round / active tool for the turn in flight. Reads the
// runtime's `extras`, so it needs no props and no dependency here.
- RunningStatus: AssistantUiInferenceStatus,
+ RunningStatus: AgentRunningStatus,
// The web pages the turn fetched, grouped from its `source` parts into
// one collapsed disclosure under the answer.
SourceGroup: ChatSources,