mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add provider-owned authentication recovery (#39274)
## What changed - Let model providers identify recoverable authentication errors and refresh their own authentication state before falling back to `AuthManager` recovery. - Apply provider recovery to both HTTP and WebSocket response requests, with at most one provider-owned recovery attempt per request. - Preserve existing `401 Unauthorized` handling as the default for providers that do not customize recovery. ## Testing - Add coverage for successful and failed provider recovery, including the single-attempt bound and preservation of the original unauthorized error. GitOrigin-RevId: 9a737e3be96354699586f97dd88e544a45082969
This commit is contained in:
1 parent
f950a1ba0b
commit
22b860e80b
4 files changed
+193
-9
No files matched your search
@@ -23,6 +23,7 @@ pub use provider::ProviderAccountError;
|
||||
pub use provider::ProviderAccountResult;
|
||||
pub use provider::ProviderAccountState;
|
||||
pub use provider::ProviderCapabilities;
|
||||
pub use provider::ProviderUnauthorizedRecovery;
|
||||
pub use provider::RemoteCompactionSupport;
|
||||
pub use provider::SharedModelProvider;
|
||||
pub use provider::create_model_provider;
|
||||
Reference in new issue
Block a user