CommandCodeAI / CommandCodeAI/command-code

/usage should work while command code is actively working

Aberta
#688 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Linguagem predominante
Sem dados de linguagem
Estrelas
4k
Forks
350
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Comece no ponto de entrada do comando /usage e acompanhe como o uso é registrado enquanto uma tarefa ativa está em execução. Reproduza o problema com uma tarefa de longa duração e, em seguida, verifique se /usage relata o uso até a última solicitação concluída sem esperar a tarefa terminar.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Domínio
cli
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
52/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.