CommandCodeAI / CommandCodeAI/command-code

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

Open
#761 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the discrepancy in Studio > Usage at commandcode.ai and compare the displayed credit value, plan limit, and percentage across the 5-hour, weekly, and monthly bars. Trace the Usage dashboard's percentage calculation and verify it uses the stated credit limit. Done means the dollar amount and each progress-bar percentage are consistent, including the reported $1.18 of $70 case.

Written by the indexing model from the issue text.

Assessment

Domain
analytics, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.