Jon/sky 5969 ensure generate script and script key cross export import boundary (#3484)

This commit is contained in:
Jonathan Dobson
2025-09-19 15:24:43 -04:00
committed by GitHub
parent b104776498
commit e9c8edd9da
2 changed files with 5 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ const emptyWorkflowRequest: WorkflowCreateYAMLRequest = {
title: "New Workflow",
description: "",
ai_fallback: true,
generate_script: true,
workflow_definition: {
blocks: [],
parameters: [],

View File

@@ -2130,6 +2130,10 @@ function convert(workflow: WorkflowApiResponse): WorkflowCreateYAMLRequest {
blocks: convertBlocksToBlockYAML(workflow.workflow_definition.blocks),
},
is_saved_task: workflow.is_saved_task,
generate_script: workflow.generate_script,
cache_key: workflow.cache_key,
ai_fallback: workflow.ai_fallback ?? undefined,
run_sequentially: workflow.run_sequentially ?? undefined,
};
}