From 467119d186a3e63887ac7b53211cd1f64dc6fe29 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 8 Jan 2026 15:24:02 +0800 Subject: [PATCH] fix loading state in batch run --- web/app/components/app/text-generate/item/index.tsx | 6 +++--- web/app/components/share/text-generation/result/index.tsx | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/app/components/app/text-generate/item/index.tsx b/web/app/components/app/text-generate/item/index.tsx index 1ffc2459ac..20a6f56b89 100644 --- a/web/app/components/app/text-generate/item/index.tsx +++ b/web/app/components/app/text-generate/item/index.tsx @@ -8,7 +8,7 @@ import { RiClipboardLine, RiFileList3Line, RiPlayList2Line, - RiReplay15Line, + RiResetLeftLine, RiSparklingFill, RiSparklingLine, RiThumbDownLine, @@ -123,7 +123,7 @@ const GenerationItem: FC = ({ const [isQuerying, { setTrue: startQuerying, setFalse: stopQuerying }] = useBoolean(false) const childProps = { - isInWebApp: true, + isInWebApp, content: completionRes, messageId: childMessageId, depth: depth + 1, @@ -373,7 +373,7 @@ const GenerationItem: FC = ({ )} {isInWebApp && isError && ( - + )} {isInWebApp && !isWorkflow && ( diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx index 784549dcbe..8d13487350 100644 --- a/web/app/components/share/text-generation/result/index.tsx +++ b/web/app/components/share/text-generation/result/index.tsx @@ -637,7 +637,8 @@ const Result: FC = ({ isMobile={isMobile} isInstalledApp={isInstalledApp} installedAppId={installedAppInfo?.id} - isLoading={isCallBatchAPI ? (!completionRes && isResponding) : false} + // isLoading={isCallBatchAPI ? (!completionRes && isResponding) : false} + isLoading={false} taskId={isCallBatchAPI ? ((taskId as number) < 10 ? `0${taskId}` : `${taskId}`) : undefined} controlClearMoreLikeThis={controlClearMoreLikeThis} isShowTextToSpeech={isShowTextToSpeech}