From a48bf6f8b2bc5b7b922bb14a24e02ab83c15f7f0 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Thu, 31 Jul 2025 10:54:28 +0100 Subject: [PATCH] Fix backwards compatible execution by allowing additional properties to passthrough --- packages/core/src/v3/schemas/common.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/v3/schemas/common.ts b/packages/core/src/v3/schemas/common.ts index c80d6a8ce7..2928995606 100644 --- a/packages/core/src/v3/schemas/common.ts +++ b/packages/core/src/v3/schemas/common.ts @@ -311,7 +311,8 @@ export const TaskRunExecutionDeployment = z.object({ export type TaskRunExecutionDeployment = z.infer; const StaticTaskRunExecutionShape = { - task: TaskRunExecutionTask, + // Passthrough needed for backwards compatibility + task: TaskRunExecutionTask.passthrough(), queue: TaskRunExecutionQueue, environment: TaskRunExecutionEnvironment, organization: TaskRunExecutionOrganization, @@ -326,7 +327,8 @@ export const StaticTaskRunExecution = z.object(StaticTaskRunExecutionShape); export type StaticTaskRunExecution = z.infer; export const TaskRunExecution = z.object({ - attempt: TaskRunExecutionAttempt, + // Passthrough needed for backwards compatibility + attempt: TaskRunExecutionAttempt.passthrough(), run: TaskRun.and( z.object({ traceContext: z.record(z.unknown()).optional(),