feat(codex): support agent identity accounts

This commit is contained in:
AAEE86
2026-07-21 20:58:49 +08:00
parent 7756c0913f
commit b61c590bdb
20 changed files with 1763 additions and 17 deletions
@@ -37,6 +37,15 @@ pub(crate) async fn refresh_oauth_plan_auth_for_retry(
}
};
if aether_provider_transport::is_codex_agent_identity_transport(&transport)
&& !aether_provider_transport::is_codex_agent_identity_invalid_task_response(
status_code,
response_text,
)
{
return false;
}
if transport.key.decrypted_auth_config.is_none()
&& !transport.key.auth_type.trim().eq_ignore_ascii_case("oauth")
{