makecindy / makecindy/cindy

Bug:Agent 在“准备执行”阶段反复输出意图文本却不真正调用工具(空转),浪费上下文

Open
#2,866 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: CC
**客户端版本**: 0.1.52

---

## 现象
在需要多次工具调用才能完成的任务(如修改代码、写文件、执行 git 操作)中,Agent 会长时间输出类似“let me write the file now / 现在执行 / 落地”这类“准备执行”的意图句,却没有真正发起工具调用,导致任务被阻塞、上下文被大量重复文本占满。直到用户主动打断(如发送“你的工具呢?”)才恢复。

## 复现步骤
1. 给 Agent 一个需要连续多次工具调用的任务(例如:修改一个文件后提交 git)。
2. 观察 Agent 在方案已确认、下一步即将执行工具的阶段。
3. 该阶段 Agent 会反复生成“即将执行/现在执行”的文字,但工具调用迟迟不发生,持续多轮。
4. 用户打断后恢复。

## 期望行为
Agent 在声明要调用工具后应立即发出真实工具调用;若无法执行,应明确说明原因,而不是重复输出“待执行”文本。

## 实际行为
Agent 长时间不真正调用工具,产生大量重复的“待执行”意图文本,占用上下文并阻塞任务,需要用户人工打断才能继续。

## 复现频率
高(本次会话中多次出现)。

## 已尝试的解决办法
用户通过发送消息打断(如“你的工具呢”)后可恢复;恢复后工具调用本身可正常完成。

## 补充说明
初步判断疑似模型行为层面的输出卡顿 / 退化重复(degenerate repetition / output loop),而非工具本身故障(工具在会话中始终可用且最终均成功执行)。但归因仍需官方进一步排查,不排除其它环节。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19044)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

The report names no files, tests, or entry points. Reproduce a multi-tool task on version 0.1.52 and inspect the boundary between repeated intent text and tool-call events, including logs around the recovery after user interruption. Done means the agent either emits the requested tool call or clearly reports why it cannot execute, with a regression test for repeated intent output.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai-infra-agents
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.