mirror of
https://github.com/openai/codex.git
synced 2026-11-09 20:50:33 +00:00
## Why The rate-limit model switch prompt can remain visible after account usage falls below the warning threshold. ## What changed Use fresh account usage reads to clear pending prompts when all reported usage windows fall below 90%. If the prompt is already visible, replace it with a recovery notice that counts down for five seconds before dismissing. Users can also dismiss the notice with Enter or Esc. Ignore stale account reads when detecting recovery and preserve the recovery state when backend banners replace the prompt. ## Testing Add regression tests and a snapshot covering pending prompt cancellation, stale reads, the recovery notice countdown, automatic dismissal, and manual dismissal with Enter or Esc. GitOrigin-RevId: 9408f7cc7b49c52535f00d8a476f208fe4872bdf