The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 17:15 UTC
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>
Julius Marminge committed
Feb 26, 2026 at 19:41 UTC
e119e18ed36f8a909036ddb29c56bf5969bd8b77
1 file changed
+2
-2
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts
+2
-2
@@ -491,7 +491,7 @@ const make = Effect.gen(function* () {
491
const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({
492
threadId: thread.id,
493
sessionId: event.sessionId,
494
- turnId,
494
+ ...(turnId ? { turnId } : {}),
495
messageId: assistantMessageId,
496
});
497
yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);
@@ -520,7 +520,7 @@ const make = Effect.gen(function* () {
520
const assistantDeliveryMode = yield* resolveAssistantDeliveryModeForMessage({
521
threadId: thread.id,
522
sessionId: event.sessionId,
523
- turnId,
523
+ ...(turnId ? { turnId } : {}),
524
messageId: assistantMessageId,
525
});
526
yield* rememberAssistantDeliveryModeForMessage(assistantMessageId, assistantDeliveryMode);