mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-12 08:00:45 +08:00
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:
parent
46acf5a425
commit
81b9535ed5
3 changed files with 8 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue