From ce05dd19cfe13f1ea747cfa8404ec0071f1f3571 Mon Sep 17 00:00:00 2001 From: Celal Zamanoglu <95054566+celalzamanoglu@users.noreply.github.com> Date: Fri, 9 Jan 2026 22:27:40 +0300 Subject: [PATCH] fix: multiple entry blocks detected on nested loops (#4422) --- .../src/routes/workflows/editor/workflowEditorUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 68ea0e9e..84c2b7e8 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -2398,11 +2398,14 @@ function getOrderedChildrenBlocks( edges, currentNode.id, ); + // Compute next_block_label for nested loops (same as regular blocks) + const nextBlockLabel = findNextBlockLabel(currentNode.id, nodes, edges); children.push({ block_type: "for_loop", label: currentNode.data.label, continue_on_failure: currentNode.data.continueOnFailure, next_loop_on_failure: currentNode.data.nextLoopOnFailure, + next_block_label: nextBlockLabel, loop_blocks: loopChildren, loop_variable_reference: currentNode.data.loopVariableReference, complete_if_empty: currentNode.data.completeIfEmpty,