An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: hide reasoning section when done with empty text
Yoshiki Miura34df38327120
diff --git a/components/reasoning-section.tsx b/components/reasoning-section.tsxindex 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 (<CollapsibleMessagerole="assistant"