From de74b688a60e011fc0c684d4fdfeb47585dd0198 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Thu, 16 Oct 2025 14:24:51 -0700 Subject: [PATCH] script generation bug: single completion action (#3748) --- skyvern/core/script_generations/generate_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/core/script_generations/generate_script.py b/skyvern/core/script_generations/generate_script.py index 7b357576..425b0c66 100644 --- a/skyvern/core/script_generations/generate_script.py +++ b/skyvern/core/script_generations/generate_script.py @@ -481,7 +481,7 @@ def _build_block_fn(block: dict[str, Any], actions: list[dict[str, Any]]) -> Fun block_type = block.get("block_type") if block_type in SCRIPT_TASK_BLOCKS_WITH_COMPLETE_ACTION: complete_action = {"action_type": "complete"} - body_stmts.append(_action_to_stmt(complete_action, block, assign_to_output=assign_to_output)) + body_stmts.append(_action_to_stmt(complete_action, block)) # For extraction blocks, add return output statement if we have actions if is_extraction_block and any(