[BUG] Studio Usage Dashboard shows incorrect percentage bar for credit consumption ($1.18/$70 displayed as ~12%)

オープン
#761 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発

調査の方向性

まず commandcode.ai の Studio > Usage で不一致を再現し、5時間、週間、月間の各バーについて、表示されるクレジット値、プラン上限、パーセンテージを比較します。Usage ダッシュボードのパーセンテージ計算を追跡し、記載されたクレジット上限が使用されていることを確認します。報告されている $70 中 $1.18 のケースを含め、ドル金額と各プログレスバーのパーセンテージに一貫性があれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

I'm on the $10 GOAT plan with $70 monthly credits. The Studio > Usage dashboard shows two inconsistent values:

Credit value consumed: $1.18
Percentage used: ~12%

The math doesn't add up: $1.18 divided by $70 equals 1.69%, so the correct percentage should be ~1.7%, not 12%.

This discrepancy exists across all three rolling windows (5-hour, weekly, and monthly progress bars). I've confirmed there are no hidden top-ups or extra pools affecting the calculation - the only number that makes sense is $1.18 spent.
Steps to Reproduce
Navigate to Studio > Usage page in commandcode.ai
Check the "Credit value" field and the green progress bar's percentage label
Compare the dollar amount with the displayed percentage
Expected Behavior
If $1.18 of $70 credits has been used, the percentage should be approximately 1.7%. The dollar amount and the percentage bar must be consistent.
Actual Behavior
Dollar amount says $1.18 used
Percentage bar shows ~12%
These two values contradict each other (off by a factor of ~7x)
Screenshots
I have attached screenshots from my usage dashboard showing both the dollar amounts and the misleading progress bars. Happy to provide more detail if needed.
Environment
Plan: GOAT ($10/mo, $70 credits)
Model mix: Mostly free models (Laguna S 2.1, MiniMax M3/M2.7), minimal paid usage(Qwen3.7 flash)
Date observed: 2026-08-28

Expected Behavior
Image Image Image
Actual Behavior

The usage dashboard progress bars display incorrect percentages for credit consumption. The "Credit value consumed" reads $1.18, while the "Monthly Limit" progress bar shows ~12%. Given the GOAT plan allowance is $70, the correct percentage should be approximately 1.7% ($1.18 ÷ $70), creating a ~7x discrepancy that contradicts the actual monetary usage shown on the same screen.

Steps to reproduce the issue
  1. Login to the Command Code Studio web app (https://commandcode.ai/).
  2. Navigate to the Usage / Limits dashboard section.
  3. Observe the "Credit value used" numeric value and compare it to the green progress bar's percentage label.
  4. Verify that the percentage is being calculated against a much smaller denominator than the stated plan limit.
Command Code Version

0.01

Operating System

macOS

Terminal/IDE

No response

Shell

No response

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

主要言語
言語のデータがありません
スター
4k
フォーク
350
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

CommandCodeAI/command-code のほかの issue

CommandCodeAI/command-code の issue をすべて見る

似ている issue

Data Visualization の issue をもっと見る

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

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