mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## What changed - Add `GatewayLoginControl` so hosts can require caller-initiated browser authorization while retaining automatic login by default. - Expose passive readiness checks, scoped status subscriptions, and cancellable browser login that reports success after credentials are persisted. - Return non-retryable request errors for `LoginRequired` and `LoginInProgress`, while preserving retries for transient authentication failures. - Keep rejected credentials unready until replaced, and prevent slow readiness reads from blocking cached requests or overwriting newer credentials. ## Testing Add coverage for login cancellation, status notifications, external credential recovery, concurrent credential I/O, legacy automatic login, and request retry behavior. GitOrigin-RevId: e236d203998ceb6eeaca9704cc05d20ad45f2931