mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## Why EMA MCP auth status checks acquired an account grant lease, making status inspection wait for account refresh coordination or an existing lease. ## What changed Add `AuthManager::account_oauth_grant()` to inspect an owner-checked grant without acquiring the refresh lock. Use it for EMA status checks and share a single lazy read across servers, including missing grants and read errors. Keep refresh exclusion for token exchanges through `lease_account_oauth_grant()`. ## Testing Add regression coverage for status checks across two EMA servers while an account lease is held. Extend account refresh tests to verify inspection completes with a lease held and refresh queued, and returns no grant after logout. GitOrigin-RevId: 921214dd552eb216c713596f2737460053a07d08