mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
## Why A provider auth command can fail during initial credential resolution, leaving no cached authentication. A subsequent `401` should still give the configured provider one bounded opportunity to recover. ## What changed - Treat configured external authentication with an empty cache as eligible for unauthorized recovery. - Allow authority refresh to invoke the external provider when no prior auth is cached, while preserving the existing requirements for managers without an external provider. ## Testing Added unit and client coverage for a provider command that fails initially and succeeds during `401` recovery. GitOrigin-RevId: 7cab9a03f90ce29b412be8fbd97b297acdad4482