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

Ouverte
#1,117 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Domaine
ai-infra-agents, cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

[##](

) 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).

Langage dominant
Aucune donnée de langage
Étoiles
4.2k
Forks
377
Merge moyen
1 j 3 h
PR mergées (30 j)
6

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de CommandCodeAI/command-code

Toutes les issues de CommandCodeAI/command-code

Issues similaires

Plus d'issues AI Infra & Agents

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.