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

未关闭 适合新手
#42,839 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

在 apps/desktop 中工作:找到按订阅显示百分比的用量面板组件,以及汇总 Cursor 订阅额度的代码。检查每个订阅的等级(Ultra/Super)在哪里可用,因为目前的计算对所有订阅一视同仁地加权。使用一个 Ultra 订阅和一个 Super 订阅复现问题,然后确认显示的百分比与合并后的额度一致。以该 issue 中的截图作为错误行为的参考。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
1 小时 13 分钟
30 天内合并 PR
584

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。