Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: loop and interation node not showing tracing entry in chatflow (#17500)

GeorgeCaoJ0998b013214c
diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.ts
index 3664edb6cc4..4ef33a6bc66 100644
--- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts
+++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts
@@ -413,9 +413,6 @@ export const useChat = (
}
},
onNodeStarted: ({ data }) => {
- if (data.iteration_id || data.loop_id)
- return
-
responseItem.workflowProcess!.tracing!.push({
...data,
status: NodeRunningStatus.Running,
@@ -428,9 +425,6 @@ export const useChat = (
})
},
onNodeRetry: ({ data }) => {
- if (data.iteration_id || data.loop_id)
- return
-
responseItem.workflowProcess!.tracing!.push(data)
updateCurrentQAOnTree({
@@ -441,9 +435,6 @@ export const useChat = (
})
},
onNodeFinished: ({ data }) => {
- if (data.iteration_id || data.loop_id)
- return
-
const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id)
if (currentTracingIndex > -1) {
responseItem.workflowProcess!.tracing[currentTracingIndex] = {