From f96df883379f7a7b23c2f41728bf1d6622533cd4 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Fri, 27 Feb 2026 22:45:57 +1300 Subject: [PATCH] fix(45): stop ConditionalSwitch from passing input text to downstream nodes ConditionalSwitch should act as a gate/trigger, not a data router. Active outputs now trigger downstream execution without forwarding the upstream text through the connection. Co-Authored-By: Claude Opus 4.6 --- src/store/utils/connectedInputs.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/store/utils/connectedInputs.ts b/src/store/utils/connectedInputs.ts index 71bdd096..42a0c03a 100644 --- a/src/store/utils/connectedInputs.ts +++ b/src/store/utils/connectedInputs.ts @@ -250,10 +250,8 @@ export function getConnectedInputsPure( // Block non-active outputs (data does not flow through non-matching rules) if (!isActive) return; - // Active output: recursively get upstream text - const condInputs = getConnectedInputsPure(sourceNode.id, nodes, edges, _visited, dimmedNodeIds); - if (condInputs.text) text = condInputs.text; - return; // Skip normal getSourceOutput processing + // Active output: ConditionalSwitch is a gate — trigger downstream but don't pass data through + return; } const handleId = edge.targetHandle;