Agent stalls mid-turn: preamble line with no tool call follows (requires user nudge)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- ai-infra-agents, cli
调研方向
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.
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).
- 主要语言
- 没有语言数据
- 星标
- 4.2k
- 派生
- 377
- 平均合并
- 1 天 17 分钟
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommandCodeAI/command-code 的其他 Issue
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatible未关闭
难度 2/5 1-3 小时 新手友好度 75/100
CommandCodeAI/command-code#1085 ·
维护者通常 1 天内回复
-
Feature request: auto-reconnect remote control (/rc) after restart可能已有人在做 @aliarain 于 20 天前认领。 未关闭p2
难度 2/5 1-3 小时 新手友好度 85/100
CommandCodeAI/command-code#992 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#933 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#855 ·
维护者通常 1 天内回复
-
grep tool passes empty file type to ripgrep可能已有人在做 @ahmadbilaldev 于 19 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#655 · 1 条评论 ·
维护者通常 1 天内回复
查看 CommandCodeAI/command-code 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
developmentwithyash/yaan#60 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area/billing area/config comp/tui-gateway P2 provider/openrouter type/bug
难度 2/5 1-3 小时 新手友好度 68/100
NousResearch/hermes-agent#153086 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
ai-generated structs tech-debt
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复