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 Enamakel0d46a4d25190
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 56fb622021..ab51d140c4 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -1473,6 +1473,7 @@ const AssistantMessage: FC = () => {
}
}}
</MessagePrimitive.GroupedParts>
+ {stopped && <StoppedRunSlot />}
<MessageError />
<ChatErrorNotice />
</div>
@@ -1480,14 +1481,6 @@ const AssistantMessage: FC = () => {
<div
data-slot="aui_assistant-message-footer"
className={cn('ms-2 flex items-center', ACTION_BAR_HEIGHT)}>
- <AuiIf
- condition={s =>
- s.message.status?.type === 'incomplete' && s.message.status.reason === 'cancelled'
- }>
- <span data-testid="stopped-marker" className="text-muted-foreground text-xs">
- Stopped
- </span>
- </AuiIf>
<BranchPicker />
<AssistantActionBar />
</div>