From a54dca0906afb334d61ba123e66ba18e1c382c04 Mon Sep 17 00:00:00 2001 From: Hayden Bleasel Date: Sat, 5 Jul 2025 01:58:33 -0700 Subject: [PATCH] Render MessageReasoning only if text is present (#1082) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- components/message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/message.tsx b/components/message.tsx index 02649bb..71ba41b 100644 --- a/components/message.tsx +++ b/components/message.tsx @@ -103,7 +103,7 @@ const PurePreviewMessage = ({ const { type } = part; const key = `message-${message.id}-part-${index}`; - if (type === 'reasoning') { + if (type === 'reasoning' && part.text?.trim().length > 0) { return (