Skip to content

/usage should work while command code is actively working #688

Description

@HetanshWaghela

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions