# Fix type error with optional approvalPolicy and sandboxMode · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/6158b2ad5f63aa68debca2c1e899541a8421ba9e)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 6158b2ad5f63aa68debca2c1e899541a8421ba9e

Requested commit: 6158b2ad5f63aa68debca2c1e899541a8421ba9e

Commit: 6158b2ad5f63aa68debca2c1e899541a8421ba9e

Tree: a59650ca4fe00d1e185ce09c6994ba08548a6ffd

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
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>

```

## Parents

- [454ddeea57e16befdd3a893420ca46bbf291e7b6](https://git.cafe/pingdotgg/t3code/commit/454ddeea57e16befdd3a893420ca46bbf291e7b6?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/6158b2ad5f63aa68debca2c1e899541a8421ba9e?format=markdown)
