CommandCodeAI / CommandCodeAI/command-code

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

未關閉
#761 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先在 commandcode.ai 的 Studio > Usage 中重現這項差異,並比較 5 小時、每週和每月進度條中顯示的 credit 值、方案上限和百分比。追蹤 Usage 儀表板的百分比計算,並驗證其使用的是所述的 credit 上限。當美元金額和每個進度條的百分比一致時即表示完成,包括所回報的 $70 中 $1.18 的情況。

由索引模型根據 Issue 內容生成。

評估

領域
analytics, frontend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
62/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。