Skip to content

An AI-powered search engine with a generative UI

fix: hide reasoning section when done with empty text

Yoshiki Miura34df38327120
diff --git a/components/reasoning-section.tsx b/components/reasoning-section.tsx
index ee374d58..f201c0df 100644
--- a/components/reasoning-section.tsx
+++ b/components/reasoning-section.tsx
@@ -42,6 +42,9 @@ export function ReasoningSection({
if (!content) return <DefaultSkeleton />
+ // Return null if done and reasoning text is empty
+ if (content.isDone && !content.reasoning?.trim()) return null
+
return (
<CollapsibleMessage
role="assistant"