Uh oh!
There was an error while loading. Please reload this page.
fix(subflows): subflow-child selection issues, subflow error logs - #3656
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Hardens subflow execution by preventing DAG build from mutating serialized loop/parallel configs, treating subflows with no reachable/executable children as effectively empty, and surfacing clearer runtime errors/logs when loops/parallels have no executable blocks or when Written by Cursor Bugbot for commit 9f22e6a. Configure here. |
Greptile SummaryThis PR fixes three related subflow bugs: preventing mixed selection of a subflow container and its children, restoring subflow error log surfacing, and ensuring subflows with all-disabled blocks throw the same runtime error as empty subflows. Key changes:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[DAGBuilder.build] --> B[LoopConstructor / ParallelConstructor]
B --> C{subflow reachable?}
C -- No --> D[skip - no sentinels]
C -- Yes --> E{any reachable children?}
E -- Yes --> F[keep nodes, create sentinels]
E -- No --> G[config.nodes = empty, create sentinels]
F --> H[validateSubflow]
G --> H
H --> I{nodes empty?}
I -- Yes --> J[return silently]
I -- No --> K{sentinel connected to child?}
K -- No --> L[throw: start not connected]
K -- Yes --> M[DAG ready]
G --> N[Orchestrator.initializeScope]
N --> O{nodes.length === 0?}
O -- Yes --> P[addErrorLog + throw runtime error]
O -- No --> Q[normal execution]
Last reviewed commit: "fix(subflows): subfl..." |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 18, 2026
bugbot run |
icecrasher321
commented
Mar 18, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 19, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 19, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 19, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 19, 2026
bugbot run |
Summary
Couple of subflows issues:
Type of Change
Testing
Tested manually
Checklist