github / github/copilot-cli

/usage help text does not explain mixed metric scopes

Đang mở Phù hợp với người mới
#4,712 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

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

  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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.