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

未关闭
#1,117 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

[##](

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

主要语言
没有语言数据
星标
4.2k
派生
377
平均合并
1 天 17 分钟
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CommandCodeAI/command-code 的其他 Issue

查看 CommandCodeAI/command-code 的全部 Issue

相似的 Issue

更多 AI Infra & Agents Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。