From 0c69f8b061d014dc911517dca91c37fdc5cec2c7 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Sun, 25 Jan 2026 22:44:09 -0800 Subject: [PATCH] fix trigger input format version --- apps/sim/executor/utils/start-block.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/sim/executor/utils/start-block.ts b/apps/sim/executor/utils/start-block.ts index 7df680518..4fc5b7b7a 100644 --- a/apps/sim/executor/utils/start-block.ts +++ b/apps/sim/executor/utils/start-block.ts @@ -378,7 +378,14 @@ function buildManualTriggerOutput( return mergeFilesIntoOutput(output, workflowInput) } -function buildIntegrationTriggerOutput(workflowInput: unknown): NormalizedBlockOutput { +function buildIntegrationTriggerOutput( + workflowInput: unknown, + structuredInput: Record, + hasStructured: boolean +): NormalizedBlockOutput { + if (hasStructured) { + return { ...structuredInput } + } return isPlainObject(workflowInput) ? (workflowInput as NormalizedBlockOutput) : {} } @@ -428,7 +435,7 @@ export function buildStartBlockOutput(options: StartBlockOutputOptions): Normali return buildManualTriggerOutput(finalInput, workflowInput) case StartBlockPath.EXTERNAL_TRIGGER: - return buildIntegrationTriggerOutput(workflowInput) + return buildIntegrationTriggerOutput(workflowInput, structuredInput, hasStructured) case StartBlockPath.LEGACY_STARTER: return buildLegacyStarterOutput(