From af4563b7b1b61aff0e84be50f36ed4b174998a75 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 25 Mar 2026 20:31:44 -0700 Subject: [PATCH] fix: hide thinking indicator for empty thinking content (#11874) fix: hide thinking indicator when thinking content is empty Check that resolved thinking content has non-whitespace characters before rendering the ThinkingBlockPeek component, preventing empty or whitespace-only thinking blocks from showing in the chat UI. --- gui/src/components/StepContainer/StepContainer.tsx | 2 +- gui/src/pages/gui/Chat.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/src/components/StepContainer/StepContainer.tsx b/gui/src/components/StepContainer/StepContainer.tsx index 540f7cda3..fc6981d05 100644 --- a/gui/src/components/StepContainer/StepContainer.tsx +++ b/gui/src/components/StepContainer/StepContainer.tsx @@ -85,7 +85,7 @@ export default function StepContainer(props: StepContainerProps) { ) : ( <> - {props.item.reasoning?.text && ( + {props.item.reasoning?.text?.trim() && ( 0 ? history[index - 1] : null}