Files
codex/codex-rs/tui/src/status
Eric Traut a0676149ff Show custom provider rate limits in /status (#65091)
## 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
2026-12-01 21:38:53 +00:00
..