From ce60f2fbe1f25f54a388059d5fea25858118329c Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 11 Aug 2025 05:07:53 -0700 Subject: [PATCH] fix script_block file path by removing the script_block_id from the path (#3162) --- 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 bdf27f7b..4deed0fc 100644 --- a/skyvern/core/script_generations/generate_script.py +++ b/skyvern/core/script_generations/generate_script.py @@ -502,7 +502,7 @@ async def create_script_block( # Step 4: Create script file for the block # Generate a unique filename for the block file_name = f"{block_name}.skyvern" - file_path = f"blocks/{script_block.script_block_id}/{file_name}" + file_path = f"blocks/{file_name}" # Create artifact and upload to S3 artifact_id = await app.ARTIFACT_MANAGER.create_script_file_artifact(