/usage help text does not explain mixed metric scopes

未關閉 適合新手
#4,712 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
shell
領域
cli, documentation

研究方向

找到 /usage 說明文字和 issue 中參照的文件,然後檢查命令輸出如何標示其各個區段。更新措辭,明確指出本機活動、目前工作階段指標和方案期間配額的範圍;確認說明文字和轉譯後的輸出不再將所有指標描述為工作階段使用量。

由索引模型根據 Issue 內容生成。

描述

area:sessions
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:

  1. Activity · last 180 days · N messages is aggregated from local history across multiple saved CLI sessions.
  2. Changes, AI Credits, Tokens, and the per-model breakdown describe the current session.
  3. Plan describes 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
  1. Use Copilot CLI across multiple sessions.
  2. Start a new session and send one prompt.
  3. Run /usage.
  4. 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 /usage as 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.
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。