You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Long tool loops can finish a turn with no visible reply
#12741
UI 在确实没有回答时给出明确占位(如“本轮仅执行了工具,无文字回复”),不要只留一个 Worked for …。
English
During long tasks the agent keeps calling tools and the transcript shows only tool rows and Worked for …; no assistant text. Root cause: (1) a step ends only when it has no tool calls, and there is no turn budget (agent-loop/README.md: "No built-in turn budget"); (2) ui-chat/.../turn-process.ts counts only the last step's text-only message as the answer, so text sharing a step with a concluding tool call is ignored; (3) the system prompt never requires a reply, and an empty assistant message still completes normally. Expected: steer/require a short closing reply, count text alongside the concluding tool call, and show a placeholder when a turn truly has no reply.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Long tool loops can finish a turn with no visible reply
现象
长任务中 agent 会连续调工具、生成代码很久,界面上只有工具行和
Worked for 2m/Deep diving for …,没有一句文字回复。展开工作过程偶尔能看到中间文字,但多数轮次一句都没有。定位
packages/core/agent-loop/src/agent.ts:step 只在toolCalls.length === 0时结束;且没有 turn budget(README 明确写 "No built-in turn budget")。模型一直调工具,这一轮就一直不结束。packages/client/ui-chat/src/client/conversation-nodes/turn-process.ts:只有“最后一步 + 有可见文本 + 不含 tool-call”才算最终回答。模型写了总结、但同一步还带最后一个工具调用时,也会被判为“无回答”。completed,turn/end也没有“空回复”状态。期望
Worked for …。English
During long tasks the agent keeps calling tools and the transcript shows only tool rows and
Worked for …; no assistant text. Root cause: (1) a step ends only when it has no tool calls, and there is no turn budget (agent-loop/README.md: "No built-in turn budget"); (2)ui-chat/.../turn-process.tscounts only the last step's text-only message as the answer, so text sharing a step with a concluding tool call is ignored; (3) the system prompt never requires a reply, and an empty assistant message still completes normally. Expected: steer/require a short closing reply, count text alongside the concluding tool call, and show a placeholder when a turn truly has no reply.All reactions