From e119e18ed36f8a909036ddb29c56bf5969bd8b77 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 26 Feb 2026 19:41:08 -0800 Subject: [PATCH] Fix type errors with exactOptionalPropertyTypes Use conditional spread for turnId to avoid passing undefined explicitly when the target type expects an optional property. Co-Authored-By: Claude Opus 4.5 --- .../src/orchestration/Layers/ProviderRuntimeIngestion.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts b/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts index 420eee0da8aa82884d2b5b4fc6db23a90a71ae13..d412004cf2e688d88d057fc53afb8785da794d31 100644 --- a/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts +++ b/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts @@ -491,7 +491,7 @@ const make = Effect.gen(function* () { const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({ threadId: thread.id, sessionId: event.sessionId, - turnId, + ...(turnId ? { turnId } : {}), messageId: assistantMessageId, }); yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode); @@ -520,7 +520,7 @@ const make = Effect.gen(function* () { const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({ threadId: thread.id, sessionId: event.sessionId, - turnId, + ...(turnId ? { turnId } : {}), messageId: assistantMessageId, }); yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode); -- 2.54.0