mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why When a provider change triggers an account refresh for a new cloud session, the TUI tries to read configuration that the cloud backend does not expose. The cloud account belongs to the authenticated connection and is independent of the thread's model provider. ## What changed Use the cloud backend's `account/read` response directly and skip `config/read` during the refresh. ## Testing Add a regression test covering both a pending provider change and a different provider returned by the new thread. It checks that the TUI sends only `account/read`, attaches the thread, and applies the returned authentication and plan details. GitOrigin-RevId: a195fc6735227ff65e0347d6dd9588b64dbb6ada