mirror of
https://github.com/openai/codex.git
synced 2026-12-04 00:51:02 +00:00
## Why Custom providers can report quota during a turn, but `/status` only cached quota from ChatGPT account usage. Users could see a quota warning while `/status` showed no corresponding limits. ## What changed Use provider turn snapshots and rolling updates from custom providers using a saved API key to populate `/status`. Merge partial updates by limit ID, preserving omitted windows with their original timestamps and carrying forward an unexpired reset time when the window duration matches. ChatGPT account usage remains authoritative for its status display. ## Testing Extend TUI tests to cover weekly and five-hour limits after partial updates, immediate status rendering for custom providers using a saved API key, and preservation of ChatGPT account limits after a streamed update. GitOrigin-RevId: acaed9880c020885cea97307d66d78f79c5b4c65