mirror of
https://github.com/openai/codex.git
synced 2026-11-09 20:50:33 +00:00
## Why Account changes during asynchronous request setup can invalidate the credentials selected for a generation request. ## What changed - Restart HTTP request setup if the auth owner changes during the budget check. - Validate the WebSocket connection's retained auth owner with `AuthOwner::is_current()` after budget checks. ## Testing Add regression coverage for account switches during HTTP budget checks and external credential changes before WebSocket request setup, in both dual-header and assertion-only runtime auth modes. GitOrigin-RevId: 7a1e1475a40aa2d34cd94f60f729ad697f3f7028