authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-26 19:41:08-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-26 20:43:22-08:00
loge119e18ed36f8a909036ddb29c56bf5969bd8b77
treef41abc3a085304569593f21c918b1ae10d73a751
parent001902c881101f0c4d35cebcf2303ddb75f33534

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 <noreply@anthropic.com>

1 files changed, 2 insertions(+), 2 deletions(-)

apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts+2-2
...@@ -491,7 +491,7 @@ const make = Effect.gen(function* () {...@@ -491,7 +491,7 @@ const make = Effect.gen(function* () {
491 const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({491 const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({
492 threadId: thread.id,492 threadId: thread.id,
493 sessionId: event.sessionId,493 sessionId: event.sessionId,
494 turnId,494 ...(turnId ? { turnId } : {}),
495 messageId: assistantMessageId,495 messageId: assistantMessageId,
496 });496 });
497 yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);497 yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);
...@@ -520,7 +520,7 @@ const make = Effect.gen(function* () {...@@ -520,7 +520,7 @@ const make = Effect.gen(function* () {
520 const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({520 const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({
521 threadId: thread.id,521 threadId: thread.id,
522 sessionId: event.sessionId,522 sessionId: event.sessionId,
523 turnId,523 ...(turnId ? { turnId } : {}),
524 messageId: assistantMessageId,524 messageId: assistantMessageId,
525 });525 });
526 yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);526 yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);