fix(cursor): restore Enterprise included and on-demand usage - #986
Conversation
There was a problem hiding this comment.
Thanks for the PR! OpenUsage reviews external PRs only when they implement an issue a maintainer has already approved with the approved label. Please open an issue, wait for approval, then reopen this (or open a focused PR) linking it with Fixes #<issue>. Happy to take a look once it's linked to an approved issue.
This PR also changes user-visible behavior, but the description has no screenshots. Visual changes need before/after screenshots in the description so we can review them. Please add them and reopen (or push an update). If this isn't a visual change, note that in the Screenshots section.
Please close this PR for now and reopen once both are addressed.
Powered by Cursor Automations
Sent by Cursor Automation: OpenUsage PR Gatekeeper
9b6cb0a to
dd00c6c
Compare
dd00c6c to
022286f
Compare
…sage fix(cursor): restore Enterprise included and on-demand usage


Fixes #829
TL;DR
Restore Cursor Enterprise usage in the default OpenUsage card and show the account's included-request allowance and on-demand spend together.
What was happening
Requestsline.cursor.requestsis disabled by default, so the enabled Total/Auto/API widgets all renderedNo dataeven when/api/usagehad a valid request allowance./api/usagecarries the included request allowance, while/api/usage-summarycarries structured percentages and the user-scopedindividualUsage.onDemand. The same response may have neitherteamUsage.poolednorindividualUsage.overall.What this changes
/api/usageand/api/usage-summaryon the existing strict Enterprise/team fallback path.Total Usagerow and preserve the optionalRequestscopy for existing custom layouts./v1/limitsprogress units from the live metric format, so CursortotalUsageis correctly exported aspercent,requests, orusddepending on the plan.Heads-up
Live validation
/v1/limits/cursor: Total Usage exported a request-count unit, Auto/API exported percent units, On-Demand exported USD, and the billing-cycle boundary matched the dashboard.Tests
limit - remainingregression/v1/limitsunit regressionScreenshot
The default
Total Usagerow adopts request units for request-based Enterprise accounts;Extra Usageis the on-demand USD cap/spend.