Skip to content

Commit 42127d2

Browse files
committed
fix(terminal): add childWorkflowBlockId to matchesEntryForUpdate
Sub-executors reset executionOrderCounter, so child blocks across loop iterations share the same blockId + executionOrder. Without checking childWorkflowBlockId, updateConsole for iteration N overwrites entries from iterations 0..N-1, causing all child blocks to be grouped under the last iteration's workflow instance.
1 parent 289e5f9 commit 42127d2

File tree

1 file changed

+7
-0
lines changed
  • apps/sim/stores/terminal/console

1 file changed

+7
-0
lines changed

apps/sim/stores/terminal/console/store.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ const matchesEntryForUpdate = (
9191
return false
9292
}
9393

94+
if (
95+
update.childWorkflowBlockId !== undefined &&
96+
entry.childWorkflowBlockId !== update.childWorkflowBlockId
97+
) {
98+
return false
99+
}
100+
94101
return true
95102
}
96103

0 commit comments

Comments
 (0)