Merge pull request #1027 from SuanmoSuanyangTechnology/fix/release0.3.2_zy

fix(web): node executionStatus update remove silent
This commit is contained in:
yingzhao
2026-04-29 12:26:26 +08:00
committed by GitHub

View File

@@ -134,7 +134,7 @@ export const useWorkflowGraph = ({
const data = node.getData()
if (data?.type === 'if-else' || data?.type === 'question-classifier') {
console.log('chatVariables', chatVariables)
node.setData({ ...data, chatVariables }, { silent: true })
node.setData({ ...data, chatVariables })
}
})
}, [chatVariables])
@@ -1709,7 +1709,7 @@ export const useWorkflowGraph = ({
// Reset all node execution status on every chatHistory change
nodes.forEach(node => {
const data = node.getData();
node.setData({ ...data, executionStatus: '' }, { silent: true });
node.setData({ ...data, executionStatus: '' });
});
const lastAssistant = [...chatHistory].reverse().find(item => item.role === 'assistant');
@@ -1718,7 +1718,7 @@ export const useWorkflowGraph = ({
if (typeof sub.status === 'string') {
const node = nodes.find(n => n.getData()?.id === sub.node_id);
if (node) {
node.setData({ ...node.getData(), executionStatus: sub.status }, { silent: true });
node.setData({ ...node.getData(), executionStatus: sub.status });
}
}
});