# Fix codex binary path setting having no effect \(\#493\) · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/a7ec0179fb42b12ab7e1fd4c2cabd508c8f8de67)

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

Visibility: public

Requested revision: a7ec0179fb42b12ab7e1fd4c2cabd508c8f8de67

Requested commit: a7ec0179fb42b12ab7e1fd4c2cabd508c8f8de67

Commit: a7ec0179fb42b12ab7e1fd4c2cabd508c8f8de67

Tree: 5d97745b5e18e9b6b39ff6ea2de9fa640dcf5897

Author: \(CJ\) Chukwudi Nwobodo

Committer: GitHub

## Message

```
Fix codex binary path setting having no effect (#493)

* refactor(contracts): export ProviderStartOptions schema

* feat(contracts): add providerOptions to ThreadTurnStartCommand

* feat(web): send codex binary/home path settings to server

* feat(server): thread providerOptions through to session startup

* fix(contracts): define ProviderStartOptions inline to avoid circular dep

The import from provider.ts caused a ReferenceError at runtime because
of module initialization order in the bundled output.

* fix(server): preserve providerOptions across runtime mode changes and session recovery

Runtime mode toggles and server restarts silently dropped the custom
codex binary/home path, falling back to the default binary. Cache
providerOptions per thread in ProviderCommandReactor and persist it in
the session binding's runtimePayload so recovery can restore it.

Closes #486
```

## Parents

- [c97c6b7836ce888b24a157de8eb4aea761028979](https://git.cafe/gitcafe/t3code/commit/c97c6b7836ce888b24a157de8eb4aea761028979?format=markdown)

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