Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
remove cache actions (#4015)
Shuchang Zhengd118eb5d4ef0
diff --git a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts b/skyvern-frontend/src/routes/workflows/editor/helpContent.tsindex 08e39292d..2b8e00912 100644--- a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts+++ b/skyvern-frontend/src/routes/workflows/editor/helpContent.ts@@ -23,7 +23,6 @@ export const baseHelpTooltipContent = {"If you are running multiple workflows at once, you will need to give the block an identifier to know that this TOTP goes with this block.",continueOnFailure:"Allow the workflow to continue if it encounters a failure.",- cacheActions: "Cache the actions of this block.",includeActionHistoryInVerification:"Include the action history in the completion verification.",} as const;diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsxindex c02c57f46..31428bc1c 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx@@ -269,12 +269,8 @@ function ActionNode({ id, data, type }: NodeProps<ActionNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/types.tsindex 53e8bd382..b804ff6eb 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/types.ts@@ -13,7 +13,6 @@ export type ActionNodeData = NodeBaseData & {parameterKeys: Array<string>;totpVerificationUrl: string | null;totpIdentifier: string | null;- cacheActions: boolean;disableCache: boolean;engine: RunEngine | null;};@@ -34,7 +33,6 @@ export const actionNodeDefaultData: ActionNodeData = {totpVerificationUrl: null,totpIdentifier: null,continueOnFailure: false,- cacheActions: false,disableCache: false,engine: RunEngine.SkyvernV1,model: null,diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsxindex 67067f995..3f16b9acd 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx@@ -2,21 +2,15 @@ import { HelpTooltip } from "@/components/HelpTooltip";import { Label } from "@/components/ui/label";import { Switch } from "@/components/ui/switch";-import { helpTooltips } from "../helpContent";-function DisableCache({- cacheActions,disableCache,editable,// --- onCacheActionsChange,onDisableCacheChange,}: {- cacheActions?: boolean;disableCache: boolean;editable: boolean;// --- onCacheActionsChange: (cacheActions: boolean) => void;onDisableCacheChange: (disableCache: boolean) => void;}) {return (@@ -27,27 +21,6 @@ function DisableCache({for the block. If it's `false`, we are not showing it.*/}- {cacheActions && (- <div className="flex items-center justify-between">- <div className="flex gap-2">- <Label className="text-xs font-normal text-slate-300">- Cache Actions- </Label>- <HelpTooltip content={helpTooltips["extraction"]["cacheActions"]} />- </div>- <div className="w-52">- <Switch- checked={cacheActions}- onCheckedChange={(checked) => {- if (!editable) {- return;- }- onCacheActionsChange(checked);- }}- />- </div>- </div>- )}<div className="flex items-center justify-between"><div className="flex gap-2"><Label className="text-xs font-normal text-slate-300">diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/ExtractionNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/ExtractionNode.tsxindex 3b74e576a..2e72e209e 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/ExtractionNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/ExtractionNode.tsx@@ -232,12 +232,8 @@ function ExtractionNode({ id, data, type }: NodeProps<ExtractionNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/types.tsindex 2978c6f3f..4b3c95147 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ExtractionNode/types.ts@@ -10,7 +10,6 @@ export type ExtractionNodeData = NodeBaseData & {maxRetries: number | null;maxStepsOverride: number | null;parameterKeys: Array<string>;- cacheActions: boolean;disableCache: boolean;engine: RunEngine | null;};@@ -28,7 +27,6 @@ export const extractionNodeDefaultData: ExtractionNodeData = {editable: true,parameterKeys: [],continueOnFailure: false,- cacheActions: false,disableCache: false,engine: RunEngine.SkyvernV1,model: null,diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsxindex fb90ddc2d..e2cca0653 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx@@ -297,12 +297,8 @@ function FileDownloadNode({ id, data }: NodeProps<FileDownloadNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/types.tsindex 609094951..ce486f2d2 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/types.ts@@ -14,7 +14,6 @@ export type FileDownloadNodeData = NodeBaseData & {totpVerificationUrl: string | null;totpIdentifier: string | null;engine: RunEngine | null;- cacheActions: boolean;disableCache: boolean;downloadTimeout: number | null;};@@ -35,7 +34,6 @@ export const fileDownloadNodeDefaultData: FileDownloadNodeData = {totpVerificationUrl: null,totpIdentifier: null,continueOnFailure: false,- cacheActions: false,disableCache: false,engine: RunEngine.SkyvernV1,model: null,diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsxindex 63966d750..3f35a7394 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx@@ -294,12 +294,8 @@ function LoginNode({ id, data, type }: NodeProps<LoginNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/types.tsindex 8ff7f64d7..a6e874b1f 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/types.ts@@ -12,7 +12,6 @@ export type LoginNodeData = NodeBaseData & {parameterKeys: Array<string>;totpVerificationUrl: string | null;totpIdentifier: string | null;- cacheActions: boolean;disableCache: boolean;completeCriterion: string;terminateCriterion: string;@@ -35,7 +34,6 @@ export const loginNodeDefaultData: LoginNodeData = {totpVerificationUrl: null,totpIdentifier: null,continueOnFailure: false,- cacheActions: false,disableCache: false,completeCriterion: "",terminateCriterion: "",diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsxindex fd22e81c9..8f148e980 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx@@ -328,12 +328,8 @@ function NavigationNode({ id, data, type }: NodeProps<NavigationNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/types.tsindex 173f671a8..643f86ed7 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/types.ts@@ -17,7 +17,6 @@ export type NavigationNodeData = NodeBaseData & {parameterKeys: Array<string>;totpVerificationUrl: string | null;totpIdentifier: string | null;- cacheActions: boolean;disableCache: boolean;includeActionHistoryInVerification: boolean;};@@ -43,7 +42,6 @@ export const navigationNodeDefaultData: NavigationNodeData = {totpVerificationUrl: null,totpIdentifier: null,continueOnFailure: false,- cacheActions: false,disableCache: false,includeActionHistoryInVerification: false,} as const;diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsxindex 3581e045b..e0be0401f 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx@@ -343,12 +343,8 @@ function TaskNode({ id, data, type }: NodeProps<TaskNode>) {</div></div><DisableCache- cacheActions={data.cacheActions}disableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/types.tsindex 891b5e2d0..9c1f47874 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/types.ts@@ -17,7 +17,6 @@ export type TaskNodeData = NodeBaseData & {parameterKeys: Array<string>;totpVerificationUrl: string | null;totpIdentifier: string | null;- cacheActions: boolean;disableCache: boolean;includeActionHistoryInVerification: boolean;engine: RunEngine | null;@@ -44,7 +43,6 @@ export const taskNodeDefaultData: TaskNodeData = {totpVerificationUrl: null,totpIdentifier: null,continueOnFailure: false,- cacheActions: false,disableCache: false,includeActionHistoryInVerification: false,engine: RunEngine.SkyvernV1,diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsxindex bf5dd7113..55d6570c7 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx@@ -160,9 +160,6 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {<DisableCachedisableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/types.tsindex e3a5c3498..b3f477c53 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/types.ts@@ -11,7 +11,6 @@ export type Taskv2NodeData = NodeBaseData & {totpVerificationUrl: string | null;totpIdentifier: string | null;maxSteps: number | null;- cacheActions: boolean;disableCache: boolean;maxScreenshotScrolls: number | null;};@@ -28,7 +27,6 @@ export const taskv2NodeDefaultData: Taskv2NodeData = {totpIdentifier: null,totpVerificationUrl: null,maxSteps: MAX_STEPS_DEFAULT,- cacheActions: false,disableCache: false,model: null,maxScreenshotScrolls: null,diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsxindex aa6514f5e..dcd976875 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx@@ -236,9 +236,6 @@ function ValidationNode({ id, data, type }: NodeProps<ValidationNode>) {<DisableCachedisableCache={data.disableCache}editable={editable}- onCacheActionsChange={(cacheActions) => {- update({ cacheActions });- }}onDisableCacheChange={(disableCache) => {update({ disableCache });}}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/types.tsindex a0a16fc06..d8ff2b935 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/types.ts@@ -6,7 +6,6 @@ export type ValidationNodeData = NodeBaseData & {terminateCriterion: string;errorCodeMapping: string;parameterKeys: Array<string>;- cacheActions?: boolean;disableCache: boolean;};@@ -21,7 +20,6 @@ export const validationNodeDefaultData: ValidationNodeData = {continueOnFailure: false,editable: true,parameterKeys: [],- cacheActions: false,disableCache: false,model: null,};diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.tsindex 4f9b52b51..3fba6db63 100644--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts@@ -249,7 +249,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),totpIdentifier: block.totp_identifier ?? null,totpVerificationUrl: block.totp_verification_url ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,completeCriterion: block.complete_criterion ?? "",terminateCriterion: block.terminate_criterion ?? "",@@ -269,7 +268,6 @@ function convertToNode(prompt: block.prompt,url: block.url ?? "",maxSteps: block.max_steps,- cacheActions: block.cache_actions ?? false,disableCache: block.disable_cache ?? false,totpIdentifier: block.totp_identifier,totpVerificationUrl: block.totp_verification_url,@@ -308,7 +306,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),totpIdentifier: block.totp_identifier ?? null,totpVerificationUrl: block.totp_verification_url ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,engine: block.engine ?? RunEngine.SkyvernV1,},@@ -330,7 +327,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),totpIdentifier: block.totp_identifier ?? null,totpVerificationUrl: block.totp_verification_url ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,maxStepsOverride: block.max_steps_per_run ?? null,completeCriterion: block.complete_criterion ?? "",@@ -375,7 +371,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),maxRetries: block.max_retries ?? null,maxStepsOverride: block.max_steps_per_run ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,engine: block.engine ?? RunEngine.SkyvernV1,},@@ -395,7 +390,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),totpIdentifier: block.totp_identifier ?? null,totpVerificationUrl: block.totp_verification_url ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,maxStepsOverride: block.max_steps_per_run ?? null,completeCriterion: block.complete_criterion ?? "",@@ -430,7 +424,6 @@ function convertToNode(parameterKeys: block.parameters.map((p) => p.key),totpIdentifier: block.totp_identifier ?? null,totpVerificationUrl: block.totp_verification_url ?? null,- cacheActions: block.cache_actions,disableCache: block.disable_cache ?? false,maxStepsOverride: block.max_steps_per_run ?? null,engine: block.engine ?? RunEngine.SkyvernV1,@@ -1107,7 +1100,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {parameter_keys: node.data.parameterKeys,totp_identifier: node.data.totpIdentifier,totp_verification_url: node.data.totpVerificationUrl,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,include_action_history_in_verification:node.data.includeActionHistoryInVerification,@@ -1174,7 +1166,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {parameter_keys: node.data.parameterKeys,totp_identifier: node.data.totpIdentifier,totp_verification_url: node.data.totpVerificationUrl,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,engine: node.data.engine,};@@ -1199,7 +1190,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {parameter_keys: node.data.parameterKeys,totp_identifier: node.data.totpIdentifier,totp_verification_url: node.data.totpVerificationUrl,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,complete_criterion: node.data.completeCriterion,terminate_criterion: node.data.terminateCriterion,@@ -1221,7 +1211,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {}),max_steps_per_run: node.data.maxStepsOverride,parameter_keys: node.data.parameterKeys,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,engine: node.data.engine,};@@ -1244,7 +1233,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {parameter_keys: node.data.parameterKeys,totp_identifier: node.data.totpIdentifier,totp_verification_url: node.data.totpVerificationUrl,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,complete_criterion: node.data.completeCriterion,terminate_criterion: node.data.terminateCriterion,@@ -1277,7 +1265,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {parameter_keys: node.data.parameterKeys,totp_identifier: node.data.totpIdentifier,totp_verification_url: node.data.totpVerificationUrl,- cache_actions: node.data.cacheActions,disable_cache: node.data.disableCache ?? false,engine: node.data.engine,download_timeout: node.data.downloadTimeout, // seconds@@ -1930,7 +1917,6 @@ function convertBlocksToBlockYAML(parameter_keys: block.parameters.map((p) => p.key),totp_identifier: block.totp_identifier,totp_verification_url: block.totp_verification_url,- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,include_action_history_in_verification:block.include_action_history_in_verification,@@ -1993,7 +1979,6 @@ function convertBlocksToBlockYAML(parameter_keys: block.parameters.map((p) => p.key),totp_identifier: block.totp_identifier,totp_verification_url: block.totp_verification_url,- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,engine: block.engine,};@@ -2016,7 +2001,6 @@ function convertBlocksToBlockYAML(parameter_keys: block.parameters.map((p) => p.key),totp_identifier: block.totp_identifier,totp_verification_url: block.totp_verification_url,- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,complete_criterion: block.complete_criterion,terminate_criterion: block.terminate_criterion,@@ -2036,7 +2020,6 @@ function convertBlocksToBlockYAML(max_retries: block.max_retries,max_steps_per_run: block.max_steps_per_run,parameter_keys: block.parameters.map((p) => p.key),- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,engine: block.engine,};@@ -2055,7 +2038,6 @@ function convertBlocksToBlockYAML(parameter_keys: block.parameters.map((p) => p.key),totp_identifier: block.totp_identifier,totp_verification_url: block.totp_verification_url,- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,complete_criterion: block.complete_criterion,terminate_criterion: block.terminate_criterion,@@ -2085,7 +2067,6 @@ function convertBlocksToBlockYAML(parameter_keys: block.parameters.map((p) => p.key),totp_identifier: block.totp_identifier,totp_verification_url: block.totp_verification_url,- cache_actions: block.cache_actions,disable_cache: block.disable_cache ?? false,engine: block.engine,download_timeout: null, // secondsdiff --git a/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowTypes.tsindex 8ed9beed9..87f94f36f 100644--- a/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts+++ b/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts@@ -307,7 +307,6 @@ export type TaskBlock = WorkflowBlockBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache?: boolean;include_action_history_in_verification: boolean;engine: RunEngine | null;@@ -320,7 +319,6 @@ export type Taskv2Block = WorkflowBlockBase & {totp_verification_url: string | null;totp_identifier: string | null;max_steps: number | null;- cache_actions?: boolean;disable_cache: boolean;};@@ -425,7 +423,6 @@ export type ActionBlock = WorkflowBlockBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache?: boolean;engine: RunEngine | null;};@@ -443,7 +440,6 @@ export type NavigationBlock = WorkflowBlockBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache?: boolean;complete_criterion: string | null;terminate_criterion: string | null;@@ -460,7 +456,6 @@ export type ExtractionBlock = WorkflowBlockBase & {max_retries?: number;max_steps_per_run?: number | null;parameters: Array<WorkflowParameter>;- cache_actions: boolean;disable_cache?: boolean;engine: RunEngine | null;};@@ -476,7 +471,6 @@ export type LoginBlock = WorkflowBlockBase & {parameters: Array<WorkflowParameter>;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache?: boolean;complete_criterion: string | null;terminate_criterion: string | null;@@ -500,7 +494,6 @@ export type FileDownloadBlock = WorkflowBlockBase & {parameters: Array<WorkflowParameter>;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache?: boolean;engine: RunEngine | null;download_timeout: number | null; // secondsdiff --git a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.tsindex 461fb1100..e0c7db3ed 100644--- a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts+++ b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts@@ -161,7 +161,6 @@ export type TaskBlockYAML = BlockYAMLBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache: boolean;complete_criterion: string | null;terminate_criterion: string | null;@@ -213,7 +212,6 @@ export type ActionBlockYAML = BlockYAMLBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache: boolean;engine: RunEngine | null;};@@ -231,7 +229,6 @@ export type NavigationBlockYAML = BlockYAMLBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache: boolean;complete_criterion: string | null;terminate_criterion: string | null;@@ -249,7 +246,6 @@ export type ExtractionBlockYAML = BlockYAMLBase & {max_retries?: number;max_steps_per_run?: number | null;parameter_keys?: Array<string> | null;- cache_actions: boolean;disable_cache: boolean;engine: RunEngine | null;};@@ -265,7 +261,6 @@ export type LoginBlockYAML = BlockYAMLBase & {parameter_keys?: Array<string> | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache: boolean;complete_criterion: string | null;terminate_criterion: string | null;@@ -289,7 +284,6 @@ export type FileDownloadBlockYAML = BlockYAMLBase & {download_suffix?: string | null;totp_verification_url?: string | null;totp_identifier?: string | null;- cache_actions: boolean;disable_cache: boolean;engine: RunEngine | null;download_timeout?: number | null;diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.pyindex 22f719e29..713d1a05d 100644--- a/skyvern/forge/agent.py+++ b/skyvern/forge/agent.py@@ -116,7 +116,6 @@ from skyvern.webeye.actions.actions import (TerminateAction,WebAction,)-from skyvern.webeye.actions.caching import retrieve_action_planfrom skyvern.webeye.actions.handler import ActionHandlerfrom skyvern.webeye.actions.models import DetailedAgentStepOutputfrom skyvern.webeye.actions.parse_actions import (@@ -1002,15 +1001,8 @@ class ForgeAgent:)else:- using_cached_action_plan = Falseif not task.navigation_goal and not isinstance(task_block, ValidationBlock):actions = [await self.create_extract_action(task, step, scraped_page)]- elif (- task_block- and task_block.cache_actions- and (actions := await retrieve_action_plan(task, step, scraped_page))- ):- using_cached_action_plan = Trueelse:llm_key_override = task.llm_key# FIXME: Redundant engine check?@@ -1124,7 +1116,7 @@ class ForgeAgent:wait_actions_len = len(wait_actions_to_skip)# if there are wait actions and there are other actions in the list, skip wait actions# if we are using cached action plan, we don't skip wait actions- if wait_actions_len > 0 and wait_actions_len < len(actions) and not using_cached_action_plan:+ if wait_actions_len > 0 and wait_actions_len < len(actions):actions = [action for action in actions if action.action_type != ActionType.WAIT]LOG.info("Skipping wait actions",diff --git a/skyvern/forge/sdk/routes/code_samples.py b/skyvern/forge/sdk/routes/code_samples.pyindex 8dbe7bf67..382e8a5c7 100644--- a/skyvern/forge/sdk/routes/code_samples.py+++ b/skyvern/forge/sdk/routes/code_samples.py@@ -228,7 +228,6 @@ workflow_definition:parameter_keys: []totp_identifier: nulltotp_verification_url: null- cache_actions: falsecomplete_criterion: ""terminate_criterion: ""include_action_history_in_verification: false@@ -242,7 +241,6 @@ workflow_definition:max_retries: 0max_steps_per_run: nullparameter_keys: []- cache_actions: false'"""CREATE_WORKFLOW_CODE_SAMPLE_PYTHON = """@@ -305,7 +303,6 @@ workflow_definition = {"parameter_keys": [],"totp_identifier": None,"totp_verification_url": None,- "cache_actions": False,"complete_criterion": "","terminate_criterion": "","include_action_history_in_verification": False,@@ -321,7 +318,6 @@ workflow_definition = {"max_retries": 0,"max_steps_per_run": None,"parameter_keys": [],- "cache_actions": False,},],},@@ -391,7 +387,6 @@ const workflowDefinition = {parameter_keys: [],totp_identifier: null,totp_verification_url: null,- cache_actions: false,complete_criterion: "",terminate_criterion: "",include_action_history_in_verification: false@@ -407,7 +402,6 @@ const workflowDefinition = {max_retries: 0,max_steps_per_run: null,parameter_keys: [],- cache_actions: false}]}@@ -484,7 +478,6 @@ workflow_definition:parameter_keys: []totp_identifier: nulltotp_verification_url: null- cache_actions: falsecomplete_criterion: ""terminate_criterion: ""include_action_history_in_verification: false@@ -498,7 +491,6 @@ workflow_definition:max_retries: 0max_steps_per_run: nullparameter_keys: []- cache_actions: false'"""UPDATE_WORKFLOW_CODE_SAMPLE_PYTHON = """@@ -560,7 +552,6 @@ updated_workflow_definition = {"parameter_keys": [],"totp_identifier": None,"totp_verification_url": None,- "cache_actions": False,"complete_criterion": "","terminate_criterion": "","include_action_history_in_verification": False,@@ -576,7 +567,6 @@ updated_workflow_definition = {"max_retries": 0,"max_steps_per_run": None,"parameter_keys": [],- "cache_actions": False,},],},@@ -645,7 +635,6 @@ const updatedWorkflowDefinition = {parameter_keys: [],totp_identifier: null,totp_verification_url: null,- cache_actions: false,complete_criterion: "",terminate_criterion: "",include_action_history_in_verification: false@@ -660,8 +649,7 @@ const updatedWorkflowDefinition = {data_schema: null,max_retries: 0,max_steps_per_run: null,- parameter_keys: [],- cache_actions: false+ parameter_keys: []}]}diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.pyindex 4e78ea18d..aecb07dfa 100644--- a/skyvern/forge/sdk/workflow/models/block.py+++ b/skyvern/forge/sdk/workflow/models/block.py@@ -458,7 +458,6 @@ class BaseTaskBlock(Block):download_suffix: str | None = Nonetotp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsecomplete_verification: bool = Trueinclude_action_history_in_verification: bool = Falsedownload_timeout: float | None = None # minutesdiff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.pyindex 4321e1a42..85be1f574 100644--- a/skyvern/forge/sdk/workflow/service.py+++ b/skyvern/forge/sdk/workflow/service.py@@ -2870,7 +2870,6 @@ class WorkflowService:continue_on_failure=block_yaml.continue_on_failure,totp_verification_url=block_yaml.totp_verification_url,totp_identifier=block_yaml.totp_identifier,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,complete_criterion=block_yaml.complete_criterion,terminate_criterion=block_yaml.terminate_criterion,@@ -3050,7 +3049,6 @@ class WorkflowService:continue_on_failure=block_yaml.continue_on_failure,totp_verification_url=block_yaml.totp_verification_url,totp_identifier=block_yaml.totp_identifier,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,# DO NOT run complete verification for action blockcomplete_verification=False,@@ -3080,7 +3078,6 @@ class WorkflowService:continue_on_failure=block_yaml.continue_on_failure,totp_verification_url=block_yaml.totp_verification_url,totp_identifier=block_yaml.totp_identifier,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,complete_criterion=block_yaml.complete_criterion,terminate_criterion=block_yaml.terminate_criterion,@@ -3122,7 +3119,6 @@ class WorkflowService:max_retries=block_yaml.max_retries,model=block_yaml.model,continue_on_failure=block_yaml.continue_on_failure,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,complete_verification=False,)@@ -3148,7 +3144,6 @@ class WorkflowService:continue_on_failure=block_yaml.continue_on_failure,totp_verification_url=block_yaml.totp_verification_url,totp_identifier=block_yaml.totp_identifier,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,complete_criterion=block_yaml.complete_criterion,terminate_criterion=block_yaml.terminate_criterion,@@ -3188,7 +3183,6 @@ class WorkflowService:continue_on_failure=block_yaml.continue_on_failure,totp_verification_url=block_yaml.totp_verification_url,totp_identifier=block_yaml.totp_identifier,- cache_actions=block_yaml.cache_actions,disable_cache=block_yaml.disable_cache,complete_on_download=True,complete_verification=True,diff --git a/skyvern/schemas/workflows.py b/skyvern/schemas/workflows.pyindex 6c6494828..d1c335f56 100644--- a/skyvern/schemas/workflows.py+++ b/skyvern/schemas/workflows.py@@ -225,7 +225,6 @@ class TaskBlockYAML(BlockYAML):)totp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsedisable_cache: bool = Falsecomplete_criterion: str | None = Noneterminate_criterion: str | None = None@@ -360,7 +359,6 @@ class ActionBlockYAML(BlockYAML):)totp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsedisable_cache: bool = False@@ -381,7 +379,6 @@ class NavigationBlockYAML(BlockYAML):)totp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsedisable_cache: bool = Falsecomplete_criterion: str | None = Noneterminate_criterion: str | None = None@@ -400,7 +397,6 @@ class ExtractionBlockYAML(BlockYAML):max_retries: int = 0max_steps_per_run: int | None = Noneparameter_keys: list[str] | None = None- cache_actions: bool = Falsedisable_cache: bool = False@@ -417,7 +413,6 @@ class LoginBlockYAML(BlockYAML):parameter_keys: list[str] | None = Nonetotp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsedisable_cache: bool = Falsecomplete_criterion: str | None = Noneterminate_criterion: str | None = None@@ -459,7 +454,6 @@ class FileDownloadBlockYAML(BlockYAML):)totp_verification_url: str | None = Nonetotp_identifier: str | None = None- cache_actions: bool = Falsedisable_cache: bool = Falsedownload_timeout: float | None = None