CommandCodeAI / CommandCodeAI/command-code

/usage should work while command code is actively working

Đang mở
#688 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Summary

/usage cannot be checked while command code is actively running a task. This makes it hard to monitor usage during long-running tasks, which is when usage information is most useful.

Expected Behavior

i should be able to run /usage while command code is working and see the usage that has already been recorded.

the currently in-flight request does not need to be included. it could simply show usage through the last completed request.

Actual Behavior

while command code is actively working, i cannot use /usage to check my current usage. i have to wait until the task/turn finishes before i can see it.

for long-running tasks this means i cannot tell how much of my usage limit has already been consumed while deciding whether to let the task continue or interrupt it.

Steps to reproduce the issue
  1. start command code
  2. give it a task that takes a while to complete
  3. while command code is still actively working, try to run /usage
  4. /usage does not immediately show the current recorded usage
  5. wait for the active task to finish
  6. /usage can then be checked normally
Command Code Version

1.26.0

Operating System

macOS

Terminal/IDE

ghostty

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

OS: macOS Tahoe 26.6.1

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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

Bắt đầu từ điểm truy cập của lệnh /usage và theo dõi cách mức sử dụng được ghi lại trong khi một tác vụ đang hoạt động. Tái hiện sự cố với một tác vụ chạy trong thời gian dài, sau đó xác minh rằng /usage báo cáo mức sử dụng đến yêu cầu hoàn tất gần nhất mà không chờ tác vụ kết thúc.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/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.