Agent stalls mid-turn: preamble line with no tool call follows (requires user nudge)

Aperta
#1,117 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

Start by tracing how the CLI handles a model response that emits a conversational preamble without a tool call, then inspect the turn orchestration and trace handling for the supplied trace ID. Reproduce the stall in a long session with a multi-step tool chain and compare it with a single-tool turn. Done means the turn continues to the next tool call or reports a visible error instead of waiting for a user nudge.

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

Descrizione

[##](

) Summary
Agent randomly stalls mid-turn: it prints a conversational :: preamble line (e.g. "Pushing both now — hedge-wizardry first, pi-gauge second.") and then stops. No tool call follows. Session shows * Worked for 1m 20s and waits for user input. Any nudge ("push", "continue", "stalled again ") resumes it from the same state.

Related: #1111 (sub-agents interrupted with no output — same family, but this is the main agent stalling, not a sub-agent).

Repro / frequency

  • Random, but much more frequent in long sessions and when a turn needs a chain (preamble → shell → read → shell).
  • Single-tool turns (e.g. one web_search) usually land in one go.
  • Happened in a forked session where I did nothing except watch — so not caused by user edits mid-turn.
Image

Environment

  • cmd --version: 1.88.4
  • OS: Arch Linux (hyprland / alacritty terminal)
  • Trace ID (copied via /trace at stall time): 15950f53fef5b9f1628951135c7d0180

Expected

Preamble should always be followed by the tool call, or the turn should error visibly instead of going idle with * Worked for ... and no result.

Workaround

Sending any follow-up nudges it and it resumes fine. /compact or a fresh forked session lowers the rate. Nothing is lost (committed turns persist).

Lingua principale
Nessun dato sulla lingua
Stelle
4.2k
Fork
377
Merge medio
1g 3h
PR unite (30g)
6

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 CommandCodeAI/command-code

Tutte le issue di CommandCodeAI/command-code

Issue simili

Altre issue su AI Infra & Agents

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.