From e9795bd772eec76bed3bc1a4f66439402d4bc945 Mon Sep 17 00:00:00 2001 From: zhsama Date: Mon, 22 Dec 2025 18:17:25 +0800 Subject: [PATCH] feat: refine workflow graph processing to exclude additional UI-only node types --- api/core/workflow/graph/graph.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/api/core/workflow/graph/graph.py b/api/core/workflow/graph/graph.py index 4eb5d94b20..c1a7e43b3e 100644 --- a/api/core/workflow/graph/graph.py +++ b/api/core/workflow/graph/graph.py @@ -309,10 +309,14 @@ class Graph: raise ValueError("Graph must have at least one node") # Filter out UI-only nodes that should not participate in workflow execution - # These include ReactFlow node types (custom-*) and data types that UI-only nodes may use - ui_only_node_types = {"custom-note", "custom-group", "custom-group-input", "custom-group-exit-port", "group"} + # Check both node.type (ReactFlow type) and node.data.type (business type) + ui_only_node_types = {"custom-note"} + ui_only_data_types = {"group"} node_configs = [ - node_config for node_config in node_configs if node_config.get("type", "") not in ui_only_node_types + node_config + for node_config in node_configs + if node_config.get("type", "") not in ui_only_node_types + and node_config.get("data", {}).get("type", "") not in ui_only_data_types ] # Parse node configurations