[Bug]: Waiting strip shows no timer for a Claude background command, because the task id does not match the turn item

Aperta Adatta ai principianti
#28,899 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@voltcrash ci sta già lavorando.

Dal 2/11/2026.

  • #29591 di @voltcrash — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia da apps/web/src/components/chat/ThreadActivityBanners.tsx, dove la ricerca confronta (candidate.nativeItemRef?.nativeId || candidate.id) con task.taskId e quindi non trova alcun elemento per l'id della shell in background. Verifica come sono collegati il taskId del provider e il nativeItemRef.nativeId dell'elemento del turno per i comandi Bash in background. Poi fai in modo che il banner risolva l'elemento corrispondente, così che startedAtMs venga impostato. È completato quando la striscia di attesa mostra un timer dell'elapsed in tempo reale per un singolo comando in background in sospeso.

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

Descrizione

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. In a Claude thread, have the agent start one long command with Bash run_in_background.
  2. Let the turn end, so the thread waits on that command.
  3. Look at the waiting strip.
Expected behavior

A live elapsed time next to the task, because backgroundWorkNowItem renders one when a single task is pending.

Actual behavior

No timer. The strip shows only the label and Stop.

Impact

Minor bug or occasional failure

Version or commit

0.1.7-nightly.20261101.4035

Environment

macOS (darwin 25.6.0), desktop app, Claude Opus 5.5

Logs or stack traces

Likely cause, from this thread's state while the command ran:

  • The pending task on the provider thread has taskId: "butrq2gr1", the background shell id.
  • The running command_execution turn item has startedAt set, with nativeItemRef.nativeId: "toolu_01N8rbvPjwHPTudjfA4XJ2Gs", the tool call id.
  • ThreadActivityBanners.tsx finds the item with (candidate.nativeItemRef?.nativeId || candidate.id) === task.taskId. The two ids differ, so item is undefined and startedAtMs is null.

No turn item in the thread has butrq2gr1 as its native id. I read the state and the source. I did not run a patched build.

Screenshots, recordings, or supporting files

Waiting strip with a background command and no timer

Workaround

None. The agent has to be asked how long the command has run.

Related: #28897 asks for a timer per task when several run, and #15584 covers the wider background work details.

Written with Claude Opus 5.5 in T3 Code.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
13h 48m
PR unite (30g)
208

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.