diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx index 48003548..c7ff39d3 100644 --- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx +++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx @@ -29,6 +29,7 @@ import { PaperPlaneIcon, Pencil1Icon, ReloadIcon, + LightningBoltIcon, } from "@radix-ui/react-icons"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import { AxiosError } from "axios"; @@ -109,7 +110,9 @@ const exampleCases = [ function PromptBox() { const navigate = useNavigate(); const [prompt, setPrompt] = useState(""); - const [selectValue, setSelectValue] = useState<"v1" | "v2">("v2"); // Observer is the default + const [selectValue, setSelectValue] = useState<"v1" | "v2" | "v2-code">( + "v2-code", + ); // v2-code is the default const credentialGetter = useCredentialGetter(); const queryClient = useQueryClient(); const [webhookCallbackUrl, setWebhookCallbackUrl] = useState( @@ -147,9 +150,6 @@ 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 { @@ -228,12 +228,26 @@ function PromptBox() { />
diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 29bc8737..38ae1a0d 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -2136,7 +2136,6 @@ 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 7192e9ff..ac7e63b9 100644 --- a/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts +++ b/skyvern-frontend/src/routes/workflows/types/workflowTypes.ts @@ -524,7 +524,6 @@ 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 43bb0c04..4504f98d 100644 --- a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts +++ b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts @@ -14,7 +14,6 @@ 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 3b332bf9..bc8bfbdf 100644 --- a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts +++ b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts @@ -122,7 +122,6 @@ 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, };