mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 15:46:00 +08:00
fix: loop and interation node not showing tracing entry in chatflow (#17500)
This commit is contained in:
parent
743071d9bb
commit
0998b01321
@ -413,9 +413,6 @@ export const useChat = (
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onNodeStarted: ({ data }) => {
|
onNodeStarted: ({ data }) => {
|
||||||
if (data.iteration_id || data.loop_id)
|
|
||||||
return
|
|
||||||
|
|
||||||
responseItem.workflowProcess!.tracing!.push({
|
responseItem.workflowProcess!.tracing!.push({
|
||||||
...data,
|
...data,
|
||||||
status: NodeRunningStatus.Running,
|
status: NodeRunningStatus.Running,
|
||||||
@ -428,9 +425,6 @@ export const useChat = (
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onNodeRetry: ({ data }) => {
|
onNodeRetry: ({ data }) => {
|
||||||
if (data.iteration_id || data.loop_id)
|
|
||||||
return
|
|
||||||
|
|
||||||
responseItem.workflowProcess!.tracing!.push(data)
|
responseItem.workflowProcess!.tracing!.push(data)
|
||||||
|
|
||||||
updateCurrentQAOnTree({
|
updateCurrentQAOnTree({
|
||||||
@ -441,9 +435,6 @@ export const useChat = (
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onNodeFinished: ({ data }) => {
|
onNodeFinished: ({ data }) => {
|
||||||
if (data.iteration_id || data.loop_id)
|
|
||||||
return
|
|
||||||
|
|
||||||
const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id)
|
const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id)
|
||||||
if (currentTracingIndex > -1) {
|
if (currentTracingIndex > -1) {
|
||||||
responseItem.workflowProcess!.tracing[currentTracingIndex] = {
|
responseItem.workflowProcess!.tracing[currentTracingIndex] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user