mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
## Why The same-owner token-refresh tests need the original backend response to remain pending until `getAuthStatus` publishes refreshed credentials. A fixed response delay does not guarantee that ordering. ## What changed Gate responses in the `getAuthStatus` test cases until a request-specific auth reload log confirms the credential change. Emit that log after updating the cached auth and generation, and include `auth_changed_for_refresh` as a structured field. Extend the JSON log test helper to match events with predicates, allowing tests to identify the refresh by its request span. GitOrigin-RevId: 698f3be499ea3c035f082c501836dae4178adaef