mirror of
https://github.com/openai/codex.git
synced 2026-10-23 04:23:49 +00:00
## What changed - Add a host-owned external auth source that runtime account APIs cannot replace, clear, or log out, and keep its credentials process-local instead of writing them to auth storage. - Let configured providers classify refresh failures. Preserve cached credentials after permanent reload failures while retaining transient behavior for runtime providers. - Compare external ChatGPT token data when detecting auth changes so a refreshed access token is applied to a retried request. ## Testing - Cover configured-auth immutability, process-local storage, permanent reload failures, runtime error classification, and refreshed headers after a `401`. GitOrigin-RevId: c6d70a39325c8ba6ca65ae68e12b55609f00a876