[Bug]: usage/credits indicator missing in bottom-left + /usage does nothing

未关闭
#70 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
shell
领域
desktop

调研方向

首先跟踪桌面应用中的 /usage 斜杠命令入口点,以及左下角侧边栏中的使用情况指示器。使用 %APPDATA%\Command Code\app-state.json 及其 accountCache 概览,确认账户、额度、订阅和使用情况数据可用。完成的标准是 /usage 能够返回预期的指标,并且额度/使用情况指示器在 Windows 上重新可见。

由索引模型根据 Issue 内容生成。

描述

bug
GUI version

0.1.30

Operating system

Windows

Reproduction steps
  1. Open the Command Code desktop app (0.1.30, Windows).
  2. Look at the bottom-left corner of the sidebar -> the credits/usage indicator that used to be there is gone.
  3. Type /usage in the chat input and press Enter -> nothing happens: no overlay, no output, no error message.
    Reproduces 100% of the time.
Expected behavior

The bottom-left credits/usage indicator should be visible again, and /usage should display credits, plan, and usage metrics (per the slash-command reference).

Actual behavior
  1. The credits/usage indicator that used to sit in the bottom-left corner is no longer shown.
  2. Typing /usage in the chat input does nothing at all.

This is not an account, billing or login problem. %APPDATA%\Command Code\app-state.json contains a fresh, successful account fetch:

  • accountCache.result.success = true
  • accountCache.fetchedAt = 2026-09-17T01:15:54+08:00
  • overview contains user, identity, credits, subscription, usage, windowLimits
  • subscription.status = "active", subscription.planId = "individual-goat"
  • credits.monthlyCredits is populated; windowLimits.fiveHour and .weekly are populated

It is not a setting I can turn back on either:

  • "cmdc config list" (the full settings registry) has no key for a usage/credits display.
  • %APPDATA%\Command Code\app-state.json has no related toggle (appState = threads / model / permissionMode / projects / ..., nothing usage-related).

I also confirmed 0.1.30 is the newest release of this repo (published 2026-09-16), so there is nothing to update to.

Screenshots, recordings, or sanitized logs

No response

Safety check
  • I removed credentials and private project information from this report.
主要语言
Shell
星标
80
派生
2
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CommandCodeAI/desktop 的其他 Issue

查看 CommandCodeAI/desktop 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。