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

Aberta
#1,117 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
ai-infra-agents, cli

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

[##](

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

Linguagem predominante
Sem dados de linguagem
Estrelas
4.2k
Forks
377
Merge médio
1d 3h
PRs com merge (30d)
6

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de CommandCodeAI/command-code

Todas as issues de CommandCodeAI/command-code

Issues semelhantes

Mais issues de AI Infra & Agents

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.