diff --git a/web/app/components/workflow/panel/index.tsx b/web/app/components/workflow/panel/index.tsx
index f5d508e6d5..94d20ba577 100644
--- a/web/app/components/workflow/panel/index.tsx
+++ b/web/app/components/workflow/panel/index.tsx
@@ -30,9 +30,9 @@ const Panel: FC = () => {
return {
showWorkflowInfoPanel: !isChatMode && !selectedNode && !runningStatus,
showNodePanel: !!selectedNode && !runningStatus,
- showDebugAndPreviewPanel: isChatMode && runningStatus,
+ showDebugAndPreviewPanel: isChatMode && runningStatus && !showRunHistory,
}
- }, [selectedNode, isChatMode, runningStatus])
+ }, [selectedNode, isChatMode, runningStatus, showRunHistory])
return (
{
)
}
+ {
+ runningStatus && isChatMode && showRunHistory && (
+
+ )
+ }
{
showNodePanel && (
diff --git a/web/app/components/workflow/panel/record.tsx b/web/app/components/workflow/panel/record.tsx
index 0f5e3855f1..22f1482a4c 100644
--- a/web/app/components/workflow/panel/record.tsx
+++ b/web/app/components/workflow/panel/record.tsx
@@ -1,17 +1,27 @@
import { memo } from 'react'
+import { useIsChatMode } from '../hooks'
import Run from '../run'
import { useStore } from '../store'
+import ChatRecord from './chat-record'
const Record = () => {
+ const isChatMode = useIsChatMode()
const currentSequenceNumber = useStore(s => s.currentSequenceNumber)
const workflowRunId = useStore(s => s.workflowRunId)
return (
-
+
{`Test Run#${currentSequenceNumber}`}
-
+ {
+ isChatMode
+ ?
+ :
+ }
)
}