CommandCodeAI / CommandCodeAI/command-code

/usage should work while command code is actively working

未关闭
#688 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 /usage 命令的入口点开始,跟踪活动任务运行期间使用量的记录方式。使用一个长时间运行的任务重现该问题,然后验证 /usage 会报告截至最后一个已完成请求的使用量,而无需等待任务完成。

由索引模型根据 Issue 内容生成。

评估

领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。