feat: add mention node executor

This commit is contained in:
Novice
2026-01-08 17:35:42 +08:00
parent 8b8e521c4e
commit 5bcd3b6fe6
12 changed files with 2161 additions and 10 deletions

View File

@ -37,7 +37,10 @@ export const useWorkflowNodeFinished = () => {
}))
const newNodes = produce(nodes, (draft) => {
const currentNode = draft.find(node => node.id === data.node_id)!
const currentNode = draft.find(node => node.id === data.node_id)
// Skip if node not found (e.g., virtual extraction nodes)
if (!currentNode)
return
currentNode.data._runningStatus = data.status
if (data.status === NodeRunningStatus.Exception) {
if (data.execution_metadata?.error_strategy === ErrorHandleTypeEnum.failBranch)

View File

@ -45,6 +45,11 @@ export const useWorkflowNodeStarted = () => {
} = reactflow
const currentNodeIndex = nodes.findIndex(node => node.id === data.node_id)
const currentNode = nodes[currentNodeIndex]
// Skip if node not found (e.g., virtual extraction nodes)
if (!currentNode)
return
const position = currentNode.position
const zoom = transform[2]