From ebb816b90beaf30dd6f9f3ad7b368a947cd4f30d Mon Sep 17 00:00:00 2001 From: twwu Date: Wed, 7 Jan 2026 15:46:47 +0800 Subject: [PATCH] fix: update condition for rendering human input form in Answer component --- web/app/components/base/chat/chat/answer/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/base/chat/chat/answer/index.tsx b/web/app/components/base/chat/chat/answer/index.tsx index 53589cfecf..1d69b5f905 100644 --- a/web/app/components/base/chat/chat/answer/index.tsx +++ b/web/app/components/base/chat/chat/answer/index.tsx @@ -73,7 +73,6 @@ const Answer: FC = ({ } = item const hasAgentThoughts = !!agent_thoughts?.length const hasHumanInputs = !!humanInputFormDataList?.length || !!humanInputFilledFormDataList?.length - const hasHumanInputFormSubmitted = !!humanInputFilledFormDataList?.length const [containerWidth, setContainerWidth] = useState(0) const [contentWidth, setContentWidth] = useState(0) @@ -179,7 +178,7 @@ const Answer: FC = ({ )} {/* Block 2: Response Content (when human inputs exist) */} - {hasHumanInputFormSubmitted && ( + {hasHumanInputs && (responding || !contentIsEmpty || hasAgentThoughts) && (