CommandCodeAI / CommandCodeAI/command-code

Bug: Usage data discrepancy between CLI /usage command and web dashboard

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

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

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

説明

Bug: Usage data discrepancy between CLI /usage command and web dashboard

Summary

There is a significant discrepancy between the usage data shown by the CLI /usage command and the web dashboard (https://commandcode.ai/settings/usage). The CLI shows one model as the most used, while the web dashboard shows a completely different model.

Environment
  • Command Code version: 0.30.1
  • OS: Windows
  • Shell: PowerShell
Steps to Reproduce
  1. Use Command Code with multiple models over several sessions
  2. Run /usage in the CLI to see usage summary
  3. Check the web dashboard at https://commandcode.ai/settings/usage
  4. Compare the model usage breakdown
Expected Behavior

The usage data should be consistent between the CLI and web dashboard. Both should show the same model as the most used.

Actual Behavior

CLI /usage command shows:

  • moonshotai/Kimi-K2.5: 154 requests, $0.4753
  • xiaomi/mimo-v2.5-pro: 316 requests, $0.4663
  • deepseek/deepseek-v4-pro: 81 requests, $0.4430
  • MiniMaxAI/MiniMax-M2.5: 258 requests, $0.0805

Web dashboard shows:

  • xiaomi/mimo-v2.5-pro: Most used model (expected)
  • moonshotai/Kimi-K2.5: Only 3 requests (discrepancy)

The CLI shows Kimi-K2.5 as the most used model (154 requests), but the web dashboard shows it was only used 3 times. The web dashboard correctly shows MiMo 2.5 Pro as the most used model.

Analysis

This appears to be a data synchronization or attribution issue. The CLI may be:

  1. Aggregating data differently than the web dashboard
  2. Including background/internal model calls (as mentioned in #440) in the CLI summary but not in the web dashboard
  3. Having a caching or sync issue between local and server-side data
Related Issues
  • #440 — "Background model MiniMax-M2.5 is expensive and uncontrollable" (mentions Kimi-K2.5 background usage)
  • #326 — "Unexpected usage of multiple models during a single session" (closed as non-issue, but same underlying problem)
  • This discrepancy may be related to the background model usage discussed in #440
Additional Notes
  • The web dashboard appears to show the correct user-selected model usage
  • The CLI may be including background/internal model calls in its summary
  • This discrepancy makes it difficult to accurately track actual model usage and costs

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

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

はじめの一歩

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

調査の方向性

まず、issue の再現手順を使って、CLI /usage の集計と Web ダッシュボードのモデル内訳を比較します。#440 で言及されているバックグラウンドまたは内部のモデル呼び出しが CLI には含まれ、ダッシュボードからは除外されているかを確認します。両方のサーフェスで一貫したモデル数とコストが報告されれば完了です。

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

評価

領域
analytics, cli, web-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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