/usage help text does not explain mixed metric scopes
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tìm văn bản trợ giúp của /usage và tài liệu được tham chiếu trong issue, sau đó kiểm tra cách đầu ra của lệnh gắn nhãn cho các phần của nó. Cập nhật cách diễn đạt để phạm vi của hoạt động cục bộ, các chỉ số của phiên hiện tại và hạn mức của giai đoạn gói dịch vụ được nêu rõ; xác minh rằng văn bản trợ giúp và đầu ra được kết xuất không còn mô tả mọi chỉ số là mức sử dụng phiên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli, documentation
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 72/100