Agent stalls mid-turn: preamble line with no tool call follows (requires user nudge)
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.
Environment
cmd --version: 1.88.4- OS: Arch Linux (hyprland / alacritty terminal)
- Trace ID (copied via
/traceat 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
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
CommandCodeAI/command-code#1085 ·
Les mainteneurs répondent en général sous 1 jour
-
Feature request: auto-reconnect remote control (/rc) after restartPeut-être pris @aliarain l’a pris il y a 20 jours. Ouvertep2
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
CommandCodeAI/command-code#992 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/command-code#933 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/command-code#855 ·
Les mainteneurs répondent en général sous 1 jour
-
grep tool passes empty file type to ripgrepPeut-être pris @ahmadbilaldev l’a pris il y a 19 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/command-code#655 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de CommandCodeAI/command-code
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
developmentwithyash/yaan#60 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
area/billing area/config comp/tui-gateway P2 provider/openrouter type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
NousResearch/hermes-agent#153086 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 2 jours
-
ai-generated structs tech-debt
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour