codex - 💡(How to fix) Fix [BUG] 5 Hour Usage Limit Refresh Despite 0% Weekly Usage Limit [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19918Fetched 2026-04-29 06:25:28
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1cross-referenced ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.422.30944

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

There is an issue with the codex usage panel. Under the General Usage Limits section, it incorrectly shows that you have 100% of your 5-hour usage limit remaining, even though your weekly usage is at 0%. This counter resets every 5 hours; however, it should stay at 0% until your weekly usage resets back to 100%.

<img width="1367" height="922" alt="Image" src="https://github.com/user-attachments/assets/73085f73-c24f-4bf9-bc55-99d5f5504cd7" />

What steps can reproduce the bug?

There is an issue with the codex usage panel. Under the General Usage Limits section, it incorrectly shows that you have 100% of your 5-hour usage limit remaining, even though your weekly usage is at 0%. This counter resets every 5 hours; however, it should stay at 0% until your weekly usage resets back to 100%.

  1. Exhaust your codex weekly usage, with a remainder of x% > 0.
  2. Wait 5 hours for your 5 hour usage limit to reset
  3. You should see 100% is now left, despite having 0% on your weekly usage limit.

What is the expected behavior?

You would expect to have the 5 hour usage limit remain at 0% whilst you're weekly limit is finished.

Additional information

No response

extent analysis

TL;DR

The issue with the codex usage panel displaying incorrect usage limits may be resolved by updating the logic for resetting the 5-hour usage limit counter to account for the weekly usage limit.

Guidance

  • Verify that the weekly usage limit is correctly being tracked and updated.
  • Check the logic for resetting the 5-hour usage limit counter to ensure it takes into account the weekly usage limit.
  • Consider adding a conditional statement to prevent the 5-hour usage limit from resetting to 100% when the weekly usage limit is at 0%.
  • Review the code responsible for updating the General Usage Limits section to ensure it accurately reflects the usage limits.

Example

No code snippet can be provided without more information about the codebase.

Notes

The provided information suggests a logical error in the usage limit tracking mechanism, but without access to the code, it's difficult to provide a precise solution.

Recommendation

Apply a workaround by modifying the logic for resetting the 5-hour usage limit counter to account for the weekly usage limit, as this seems to be the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING