CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Incorrect usage count for Cursor

Open ravishar313 opened this issue 10 months ago • 13 comments

The widget shows incorrect usage for cursor. Here is shows 84% usage:

Image

while in reality it is much lower:

Image

The issue could be because I am on old plan of cursor where we used to get requests not rate limits.

ravishar313 avatar Jan 08 '26 18:01 ravishar313

No, I've seen the same thing. I have an enterprise plan and currently have "122/500" request usage and "$0 / $0" of additional request usage, but CodexBar reports 6% of plan used and 9% of on-demand. It should be 24% and 0% (or 100%).

carterworks avatar Jan 08 '26 21:01 carterworks

Same on 0.18.0-beta.1. It seems like the usage is inverted: mine shows 0%, when I haven't used Cursor in this month at all.

BasixKOR avatar Jan 19 '26 08:01 BasixKOR

Seeing this now on mine as well

nbbaier avatar Jan 20 '26 02:01 nbbaier

Pretty sure free usage plan is also displayed incorrect. It was on 30/100% while Cursor was maxed out. After the update it reset to 100/100 but the month didnt roll over.

Yelinz avatar Jan 20 '26 08:01 Yelinz

I am on a Pro Cursor account and have gone $4 over my plan using auto, CodexBar still shows me having 15% of my plan left.

dave-schmidt-dev avatar Jan 20 '26 16:01 dave-schmidt-dev

For me, this has been fixed in the latest verion. Maybe by #193.

Image

carterworks avatar Jan 20 '26 22:01 carterworks

Still wrong. It shows 0 since the update last week despite only having used 30%.

Image

arigon avatar Jan 27 '26 10:01 arigon

also getting 0% on 0.18.0-beta.2 seems like its getting the correct planUsedUSD from cursor on the used but I wonder if planLimitUSD is where its going wrong and it thinks I have 0% of my limit left.

[cursor-cookie] [cursor] [cursor-cookie] Safari cookies: trying /Users/[redacted]/Library/Cookies/Cookies.binarycookies (-1 bytes) [cursor-cookie] [cursor] [cursor-cookie] Safari cookies: failed to read /Users/[redacted]/Library/Cookies/Cookies.binarycookies: The file “Cookies.binarycookies” couldn’t be opened because there is no such file. [cursor-cookie] [cursor] [cursor-cookie] Safari cookies: trying /Users/[redacted]/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies (13562 bytes) [cursor-cookie] [cursor] [cursor-cookie] Safari cookies: permission denied for /Users/[redacted]/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies [cursor-cookie] [cursor] [cursor-cookie] Safari cookie import failed: Safari cookie file exists but is not readable (/Users/[redacted]/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies). Enable Full Disk Access. [cursor-cookie] [cursor] Browser cookie import failed: No Cursor session found. Please log in to cursor.com in Safari, Chrome, Microsoft Edge, Brave, Arc, Dia, ChatGPT Atlas, Chromium, Helium, Vivaldi, Firefox, Zen, Chrome Beta, Chrome Canary, Arc Beta, Arc Canary, Brave Beta, Brave Nightly, Microsoft Edge Beta, or Microsoft Edge Canary. [cursor-cookie] [cursor] Using stored session cookies

Cursor Status Summary: membershipType=pro accountEmail=[redacted]@gmail.com planPercentUsed=100.0% planUsedUSD=$4.95 planLimitUSD=$4.95 onDemandUsedUSD=$0.0 onDemandLimitUSD=$2.0 billingCycleEnd=2026-02-16 02:19:25 +0000

Raw API Response: {"billingCycleStart":"2026-01-16T02:19:25.000Z","billingCycleEnd":"2026-02-16T02:19:25.000Z","membershipType":"pro","limitType":"user","isUnlimited":false,"autoModelSelectedDisplayMessage":"You've used 3% of your included total usage","namedModelSelectedDisplayMessage":"You've used 11% of your included API usage","individualUsage":{"plan":{"enabled":true,"used":495,"limit":2000,"remaining":1505,"breakdown":{"included":495,"bonus":0,"total":495},"autoPercentUsed":0.04,"apiPercentUsed":10.866666666666665,"totalPercentUsed":2.5384615384615383},"onDemand":{"enabled":true,"used":0,"limit":200,"remaining":200}},"teamUsage":{}}

--- /api/usage response --- {"gpt-4":{"numRequests":0,"numRequestsTotal":0,"numTokens":0,"maxTokenUsage":null,"maxRequestUsage":null},"startOfMonth":"2026-01-16T02:19:25.000Z"}

thebestfunkymonk avatar Jan 27 '26 19:01 thebestfunkymonk

Image me, too. Always showing 100%

zyaiire avatar Feb 04 '26 16:02 zyaiire

any progress on this?

gamoreli avatar Feb 05 '26 15:02 gamoreli

Should be fixed by #240 iirc.

BasixKOR avatar Feb 06 '26 03:02 BasixKOR

I can still reproduce this on the latest release.

Environment:

  • CodexBar: 0.18.0-beta.3 (build 51)
  • macOS app bundle id: com.steipete.codexbar
  • Cursor plan: Pro ($20/mo)
  • Date tested: 2026-03-15 (Europe/Warsaw)

Mismatch:

  • Cursor dashboard (cursor.com/dashboard/spending): Total = 79% used
  • CodexBar menu: Plan = 100% used

So this appears to be the same class of issue as #154 (usage percentage mismatch), still reproducible on beta.3.

Additional local signal from logs:

  • repeated lines like: sessionQuota: no transition: provider=cursor prev=0.0 curr=0.0
  • log file: ~/Library/Logs/CodexBar/CodexBar.log

If useful, I can share a sanitized log excerpt and screenshot pair (dashboard vs menu bar) in this thread.

h3x89 avatar Mar 15 '26 16:03 h3x89

Closing this as fixed by the later Cursor usage work now on main. The current code covers the original mismatch class plus the follow-up cases that appeared after this was opened: plan.limit vs breakdown.total (#240), dashboard Total/Auto/API alignment (#587/#579), legacy request-based plans, and Enterprise/Team pooled usage (#813).

I rechecked the focused regression suite before closing:

  • swift test --filter CursorStatusProbeTests
  • swift test --filter CursorEnterpriseUsageTests

If current CodexBar 0.25 still disagrees with the Cursor dashboard, please open a new issue with the redacted current dashboard payload / screenshot pair so we can target that exact API shape.

steipete avatar May 10 '26 13:05 steipete