CommandCodeAI / CommandCodeAI/command-code

/usage should work while command code is actively working

Aperta
#688 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Nessun dato sulla lingua
Stelle
4k
Fork
350
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dal punto di ingresso del comando /usage e segui il modo in cui l’utilizzo viene registrato mentre è in esecuzione un’attività attiva. Riproduci il problema con un’attività di lunga durata, quindi verifica che /usage riporti l’utilizzo fino all’ultima richiesta completata senza attendere il completamento dell’attività.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.