fix(qq): drop per-tool notices, keep errors and interim text

Real agent turns invoke tools constantly; one 'Tool call X' message
per call flooded the chat with near-zero information. Tool frames now
only flush the pending interim explanation text; successful tool
results stay silent, and failures still push the tool name with the
error detail.
This commit is contained in:
jonah.fu 2026-08-23 23:00:38 +08:00
parent 46acf5a425
commit 81b9535ed5
3 changed files with 8 additions and 6 deletions

View file

@ -675,11 +675,12 @@ export class QqHarnessBridge {
return;
}
if (update.type === 'tool') {
// 工具调用本身不推送:agent 任务工具调用频繁,逐条推送会刷屏;
// 它只作为边界把上一段说明文本定稿推送。失败时随错误详情带出工具名。
if (nonEmptyString(pendingStepText)) {
await pushNotice(pendingStepText.trim());
}
pendingStepText = null;
await pushNotice(`Tool call ${update.name}`);
return;
}
if (update.error) {