From a39ff77bd9c4c38dc493fc350c9a4213781a1a9e Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Thu, 18 Sep 2025 20:40:01 -0400 Subject: [PATCH] In Workflow Settings, disable the "Generate Code" toggle, and always set it to `true`. (#3471) --- .../workflows/editor/nodes/StartNode/StartNode.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 2e482677..ac5f6fb4 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 : false, + useScriptCache: data.withWorkflowSettings ? data.useScriptCache : true, // TODO(jdo/always-generate): set to false scriptCacheKey: data.withWorkflowSettings ? data.scriptCacheKey : null, aiFallback: data.withWorkflowSettings ? data.aiFallback : true, runSequentially: data.withWorkflowSettings ? data.runSequentially : false, @@ -211,11 +211,14 @@ function StartNode({ id, data }: NodeProps) { { - handleChange("useScriptCache", value); - }} + checked={true} // TODO(jdo/always-generate): set to `inputs.useScriptCache` + onCheckedChange={ + (/*value*/) => { + // handleChange("useScriptCache", value); // TODO(jdo/always-generate): put back + } + } />