/usage help text does not explain mixed metric scopes
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
The /usage command help text says:
Display session usage metrics and statistics
However, the command output combines metrics with three different scopes:
Activity · last 180 days · N messagesis aggregated from local history across multiple saved CLI sessions.Changes,AI Credits,Tokens, and the per-model breakdown describe the current session.Plandescribes account/plan usage for the current quota period.
Calling all of this "session usage" is misleading. In a new session with only one user prompt, /usage can report hundreds of messages and show a six-month activity graph, making it appear that either the session boundary or message count is incorrect.
Affected version
GitHub Copilot CLI 1.0.81-11
Steps to reproduce the behavior
- Use Copilot CLI across multiple sessions.
- Start a new session and send one prompt.
- Run
/usage. - Observe that the help describes session metrics, while the output includes a 180-day, multi-session message count and chart plus plan-period quota usage.
Representative output:
Activity · last 180 days · 861 messages
...
Changes +0 -0
AI Credits 2.72 (22h 1m 8s)
Tokens ↑ 23.3k (11.8k cached) • ↓ 179
gpt-5.6-sol ↑ 23.3k (11.8k cached) • ↓ 179
Plan ... 0% used • resets in 27 days
200 / 200,000 AIC
Expected behavior
The help text and documentation should make the scopes explicit. For example:
Display local activity history, current-session usage metrics, and plan quota usage
Ideally, the rendered output would also label each section's scope (for example, Local activity, Current session, and Plan period) so users do not have to infer it.
Additional context
- Operating system: Windows
- CPU architecture: x86_64
- Shell: PowerShell
- The current documentation describes
/usageas showing "session statistics," including current-session AI Credits, duration, code edits, and token usage. It does not explain that the command also includes local multi-session activity and account/plan-period quota information.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
找到 /usage 帮助文本和 issue 中引用的文档,然后检查命令输出如何标记其各个部分。更新措辞,明确本地活动、当前会话指标和计划周期配额的范围;验证帮助文本和渲染后的输出不再将所有指标描述为会话使用量。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli, documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 72/100