diff --git a/web/app/components/workflow/run/index.tsx b/web/app/components/workflow/run/index.tsx index 5f6b07033d..1256077458 100644 --- a/web/app/components/workflow/run/index.tsx +++ b/web/app/components/workflow/run/index.tsx @@ -174,11 +174,13 @@ const RunPanel: FC = ({ created_by={executor} steps={runDetail.total_steps} exceptionCounts={runDetail.exceptions_count} + isListening={isListening} /> )} {!loading && currentTab === 'DETAIL' && !runDetail && isListening && ( )} {!loading && currentTab === 'TRACING' && ( diff --git a/web/app/components/workflow/run/result-panel.tsx b/web/app/components/workflow/run/result-panel.tsx index 0712d5209e..a444860231 100644 --- a/web/app/components/workflow/run/result-panel.tsx +++ b/web/app/components/workflow/run/result-panel.tsx @@ -40,6 +40,7 @@ export type ResultPanelProps = { showSteps?: boolean exceptionCounts?: number execution_metadata?: any + isListening?: boolean handleShowIterationResultList?: (detail: NodeTracing[][], iterDurationMap: any) => void handleShowLoopResultList?: (detail: NodeTracing[][], loopDurationMap: any) => void onShowRetryDetail?: (detail: NodeTracing[]) => void @@ -65,6 +66,7 @@ const ResultPanel: FC = ({ showSteps, exceptionCounts, execution_metadata, + isListening = false, handleShowIterationResultList, handleShowLoopResultList, onShowRetryDetail, @@ -86,6 +88,7 @@ const ResultPanel: FC = ({ tokens={total_tokens} error={error} exceptionCounts={exceptionCounts} + isListening={isListening} />
diff --git a/web/app/components/workflow/run/status.tsx b/web/app/components/workflow/run/status.tsx index fa9559fcf8..823ede2be4 100644 --- a/web/app/components/workflow/run/status.tsx +++ b/web/app/components/workflow/run/status.tsx @@ -5,7 +5,6 @@ import cn from '@/utils/classnames' import Indicator from '@/app/components/header/indicator' import StatusContainer from '@/app/components/workflow/run/status-container' import { useDocLink } from '@/context/i18n' -import { useStore } from '../store' type ResultProps = { status: string @@ -13,6 +12,7 @@ type ResultProps = { tokens?: number error?: string exceptionCounts?: number + isListening?: boolean } const StatusPanel: FC = ({ @@ -21,10 +21,10 @@ const StatusPanel: FC = ({ tokens, error, exceptionCounts, + isListening = false, }) => { const { t } = useTranslation() const docLink = useDocLink() - const isListening = useStore(s => s.isListening) return (