From 864f5226e21ac2bd3f57e13a83b79b7bf42837a5 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 19 Sep 2025 20:30:46 -0700 Subject: [PATCH] Revert "In Workflow Settings, disable the "Generate Code" toggle, and always set it to `true`." (#3488) --- skyvern-frontend/src/routes/workflows/Workflows.tsx | 2 +- .../workflows/editor/nodes/StartNode/StartNode.tsx | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/Workflows.tsx b/skyvern-frontend/src/routes/workflows/Workflows.tsx index b5511602..7372ef6e 100644 --- a/skyvern-frontend/src/routes/workflows/Workflows.tsx +++ b/skyvern-frontend/src/routes/workflows/Workflows.tsx @@ -50,7 +50,7 @@ const emptyWorkflowRequest: WorkflowCreateYAMLRequest = { title: "New Workflow", description: "", ai_fallback: true, - generate_script: true, + generate_script: false, workflow_definition: { blocks: [], parameters: [], diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx index c818cfb3..4360db31 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx @@ -72,7 +72,7 @@ function StartNode({ id, data }: NodeProps) { ? data.maxScreenshotScrolls : null, extraHttpHeaders: data.withWorkflowSettings ? data.extraHttpHeaders : null, - useScriptCache: data.withWorkflowSettings ? data.useScriptCache : true, // TODO(jdo/always-generate): set to false + useScriptCache: data.withWorkflowSettings ? data.useScriptCache : false, scriptCacheKey: data.withWorkflowSettings ? data.scriptCacheKey : null, aiFallback: data.withWorkflowSettings ? data.aiFallback : true, runSequentially: data.withWorkflowSettings ? data.runSequentially : false, @@ -211,14 +211,11 @@ function StartNode({ id, data }: NodeProps) { { - // handleChange("useScriptCache", value); // TODO(jdo/always-generate): put back - } - } + checked={inputs.useScriptCache} + onCheckedChange={(value) => { + handleChange("useScriptCache", value); + }} />