fix: also execute all nodes before debug node
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m56s

This commit is contained in:
release-bot
2026-02-12 21:57:33 +01:00
parent ec13850e1c
commit e098be6013

View File

@@ -128,7 +128,7 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
const nodes = new Map<number, RuntimeNode>();
// loop through all the nodes and assign each nodes its depth
const stack = [outputNode];
const stack = [outputNode, ...graphNodes.filter(n => n.type.endsWith('/debug'))];
while (stack.length) {
const node = stack.pop();
if (!node) continue;
@@ -145,6 +145,7 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
node.state = node.state || {};
const parent = node.state.parents[0];
if (parent) {
node.state.depth = parent.state.depth - 1;
parent.state.debugNode = true;
}
nodes.set(node.id, node);