Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
In Workflow Settings, disable the "Generate Code" toggle, and always set it to `true`. (#3471)
Jonathan Dobsona39ff77bd9c4
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsxindex 2e4826775..ac5f6fb4e 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<StartNode>) {? 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 falsescriptCacheKey: 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<StartNode>) {<Label>Generate Code</Label><HelpTooltip content="Generate & use cached code for faster execution." /><Switch+ disabled={true} // TODO(jdo/always-generate): removeclassName="ml-auto"- checked={inputs.useScriptCache}- onCheckedChange={(value) => {- handleChange("useScriptCache", value);- }}+ checked={true} // TODO(jdo/always-generate): set to `inputs.useScriptCache`+ onCheckedChange={+ (/*value*/) => {+ // handleChange("useScriptCache", value); // TODO(jdo/always-generate): put back+ }+ }/></div></div>