@devries-cameron20 / t3code Mirror · read-only / commits / e70b34de62
Fork 0

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, 16:00 UTC

Fix type error with optional approvalPolicy and sandboxMode

Use conditional spreading for these properties to handle undefined values correctly with exactOptionalPropertyTypes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Julius Marminge committed Feb 26, 2026 at 19:53 UTC e70b34de62a4598b0f5b25d5c63d82ab230172e7
1 file changed +4 -2
apps/server/src/orchestration/Layers/ProviderCommandReactor.ts
+4 -2
@@ -267,9 +267,11 @@ const make = Effect.gen(function* () {
267 ...(message.attachments !== undefined ? { attachments: message.attachments } : {}),
268 ...(event.payload.model !== undefined ? { model: event.payload.model } : {}),
269 ...(event.payload.effort !== undefined ? { effort: event.payload.effort } : {}),
270 + ...(event.payload.approvalPolicy !== undefined
271 + ? { approvalPolicy: event.payload.approvalPolicy }
272 + : {}),
273 + ...(event.payload.sandboxMode !== undefined ? { sandboxMode: event.payload.sandboxMode } : {}),
274 createdAt: event.payload.createdAt,
271 - approvalPolicy: event.payload.approvalPolicy,
272 - sandboxMode: event.payload.sandboxMode,
275 });
276 });
277