[Bug]: Cursor Usage math assumes all subs are same tier

Open Beginner friendly
#42,839 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Work inside apps/desktop: find the usage panel component that renders the per-subscription percentages and the code that aggregates Cursor subscription allowances. Check where each subscription's tier (Ultra/Super) is available, since the math currently weights every subscription equally. Reproduce with one Ultra and one Super subscription, then confirm the displayed percentage matches the combined allowance; the issue's screenshot is the reference for the wrong behaviour.

Written by the indexing model from the issue text.

Description

bug needs-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/desktop

Steps to reproduce
  1. Add an Ultra Cursor subscription
  2. Add a Super Cursor subscription (or some other lower tier)
  3. Consume usage from on of the subscriptions
  4. Open usage panel and compare percentage usage left shown with the correct math given the subs tiers
Expected behavior

The usage modal should take into account that different subscriptions have different allowances.

Actual behavior
image

In this picture, the subscription on the right is an ultra subscription, the one on the left is a super subscription, yet the weight assigned to each is equal, meaning that the calculation is off since the ultra is 50x and Super is 15x usage allowance

Impact

Cosmetic issue

Version or commit

0.1.12

Environment

Debian, desktop, Cursor

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Do the math by hand

Dominant language
TypeScript
Stars
24.8k
Forks
6.4k
Avg merge
1h 13m
Merged PRs (30d)
584

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pingdotgg/t3code

All issues in pingdotgg/t3code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.