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

オープン 初心者向け
#42,839 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

apps/desktop 内で作業してください。サブスクリプションごとのパーセンテージを表示する利用状況パネルのコンポーネントと、Cursor のサブスクリプションの利用枠を集計しているコードを見つけてください。現在の計算ではすべてのサブスクリプションが同じ重みで扱われているため、各サブスクリプションのティア(Ultra/Super)がどこで利用可能かを確認してください。Ultra と Super のサブスクリプションをそれぞれ 1 つずつ用意して再現し、表示されているパーセンテージが合算された利用枠と一致するかを確認してください。誤った挙動の基準として、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分
マージ済み PR(30日)
584

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。