diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx index c7ff39d3..84278bc2 100644 --- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx +++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx @@ -150,6 +150,9 @@ function PromptBox() { proxy_location: proxyLocation, totp_identifier: totpIdentifier, max_screenshot_scrolls: maxScreenshotScrolls, + publish_workflow: publishWorkflow, + run_with: "code", + ai_fallback: true, extracted_information_schema: dataSchema ? (() => { try { diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 38ae1a0d..29bc8737 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -2136,6 +2136,7 @@ function convert(workflow: WorkflowApiResponse): WorkflowCreateYAMLRequest { blocks: convertBlocksToBlockYAML(workflow.workflow_definition.blocks), }, is_saved_task: workflow.is_saved_task, + status: workflow.status, run_with: workflow.run_with, cache_key: workflow.cache_key, ai_fallback: workflow.ai_fallback ?? undefined, diff --git a/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts index ac7e63b9..7192e9ff 100644 --- a/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts +++ b/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts @@ -524,6 +524,7 @@ export type WorkflowApiResponse = { totp_verification_url: string | null; totp_identifier: string | null; max_screenshot_scrolls: number | null; + status: string | null; created_at: string; modified_at: string; deleted_at: string | null; diff --git a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts index 4504f98d..43bb0c04 100644 --- a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts +++ b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts @@ -14,6 +14,7 @@ export type WorkflowCreateYAMLRequest = { is_saved_task?: boolean; max_screenshot_scrolls?: number | null; extra_http_headers?: Record | null; + status?: string | null; run_with?: string | null; cache_key?: string | null; ai_fallback?: boolean; diff --git a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts index bc8bfbdf..3b332bf9 100644 --- a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts +++ b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts @@ -122,6 +122,7 @@ const useWorkflowSave = () => { blocks: saveData.blocks, }, is_saved_task: saveData.workflow.is_saved_task, + status: saveData.workflow.status, run_sequentially: saveData.settings.runSequentially, sequential_key: saveData.settings.sequentialKey, };