CommandCodeAI / CommandCodeAI/command-code
[BUG] Studio Usage Dashboard shows incorrect percentage bar for credit consumption ($1.18/$70 displayed as ~12%)
还没有人认领这个 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
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
- Login to the Command Code Studio web app (https://commandcode.ai/).
- Navigate to the Usage / Limits dashboard section.
- Observe the "Credit value used" numeric value and compare it to the green progress bar's percentage label.
- 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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 commandcode.ai 的 Studio > Usage 中复现这一差异,并比较 5 小时、每周和每月进度条中显示的 credit 值、计划限额和百分比。追踪 Usage 仪表板的百分比计算,并验证其使用的是所述的 credit 限额。当美元金额和每个进度条的百分比保持一致时即表示完成,包括报告的 $70 中 $1.18 的情况。
由索引模型根据 Issue 内容生成。
评估
- 领域
- analytics, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 62/100