refactor(workflow)!: persist workflowRunningData when closing debug panel

Keep test run results (RESULT/DETAIL/TRACING tabs) available after
closing and reopening the debug panel, or switching between Graph
and Skill views.
This commit is contained in:
yyh
2026-01-28 21:15:45 +08:00
parent c600fdafcd
commit 3dad0b38df

View File

@ -44,7 +44,6 @@ export const useWorkflowInteractions = () => {
const isActiveRun = runningStatus === WorkflowRunningStatus.Running || runningStatus === WorkflowRunningStatus.Waiting
workflowStore.setState({
showDebugAndPreviewPanel: false,
...(isActiveRun ? {} : { workflowRunningData: undefined }),
})
if (!isActiveRun) {
handleNodeCancelRunningStatus()