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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: parallel id caused append to wrong branch (#17794)
Joelf8145480fc07
diff --git a/web/app/components/workflow/run/utils/format-log/parallel/index.ts b/web/app/components/workflow/run/utils/format-log/parallel/index.tsindex 5375620343b..b341dd47a82 100644--- a/web/app/components/workflow/run/utils/format-log/parallel/index.ts+++ b/web/app/components/workflow/run/utils/format-log/parallel/index.ts@@ -74,7 +74,6 @@ const format = (list: NodeTracing[], t: any, isPrint?: boolean): NodeTracing[] =console.log(list)const result: NodeTracing[] = [...list]- const parallelFirstNodeMap: Record<string, string> = {}// list to tree by parent_parallel_start_node_id and branch by parallel_start_node_id. Each parallel may has more than one branch.result.forEach((node) => {const parallel_id = node.parallel_id ?? node.execution_metadata?.parallel_id ?? null@@ -93,7 +92,6 @@ const format = (list: NodeTracing[], t: any, isPrint?: boolean): NodeTracing[] =isParallelStartNode: true,children: [selfNode],}- parallelFirstNodeMap[parallel_id] = node.node_idconst isRootLevel = !parent_parallel_idif (isRootLevel)return@@ -121,7 +119,7 @@ const format = (list: NodeTracing[], t: any, isPrint?: boolean): NodeTracing[] =}// append to parallel start node and after the same branch- const parallelStartNode = result.find(item => item.node_id === parallelFirstNodeMap[parallel_id])+ const parallelStartNode = result.find(item => parallel_start_node_id === item.node_id)if (parallelStartNode && parallelStartNode.parallelDetail && parallelStartNode!.parallelDetail!.children) {const sameBranchNodesLastIndex = parallelStartNode.parallelDetail.children.findLastIndex((node) => {