CommandCodeAI / CommandCodeAI/command-code
/usage should work while command code is actively working
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
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
- start command code
- give it a task that takes a while to complete
- while command code is still actively working, try to run /usage
- /usage does not immediately show the current recorded usage
- wait for the active task to finish
- /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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /usage command entry point and trace how usage is recorded while an active task is running. Reproduce the issue with a long-running task, then verify that /usage reports usage through the last completed request without waiting for the task to finish.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100