Skip to content

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

fix(assistant-ui): handle empty thread state on initial render

Steven Enamakel32f12cf05850
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 5ef59ee281..7b4f140b5a 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -13,13 +13,8 @@ import { Image } from '@/components/assistant-ui/image';
import { cn } from '@/components/assistant-ui/lib/utils';
import { MarkdownText } from '@/components/assistant-ui/markdown-text';
import { ComposerQuotePreview, SelectionToolbar } from '@/components/assistant-ui/quote';
-import {
- Reasoning,
- ReasoningContent,
- ReasoningRoot,
- ReasoningText,
- ReasoningTrigger,
-} from '@/components/assistant-ui/reasoning';
+import { Reasoning } from '@/components/assistant-ui/reasoning';
+import { OpenHumanReasoningGroup } from '@/components/assistant-ui/reasoning-group';
import { ToolFallback } from '@/components/assistant-ui/tool-fallback';
import {
ToolGroupContent,
@@ -1296,14 +1291,13 @@ const AssistantMessage: FC = () => {
if (ReasoningGroup) {
return <ReasoningGroup group={part}>{children}</ReasoningGroup>;
}
- const running = part.status.type === 'running';
+ // The static reasoning panel reads the grouped parts' text and
+ // timing itself; the per-part `children` are only for overrides.
return (
- <ReasoningRoot streaming={running}>
- <ReasoningTrigger active={running} />
- <ReasoningContent aria-busy={running}>
- <ReasoningText>{children}</ReasoningText>
- </ReasoningContent>
- </ReasoningRoot>
+ <OpenHumanReasoningGroup
+ indices={part.indices}
+ running={part.status.type === 'running'}
+ />
);
}
case 'text':