From 53e77e06084622d58cd73f8cd51e001197ce1365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=BE=D0=B4=D0=B8=D0=BD=20=D0=A0=D0=BE?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Sat, 26 Sep 2026 11:37:16 +0300 Subject: [PATCH] Revert "feat: group all tools in single spoiler with names in summary" This reverts commit 28992f86577c4b9d7581908ab7909bc09a96474e. --- index.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/index.ts b/index.ts index f958e86..9d11179 100644 --- a/index.ts +++ b/index.ts @@ -330,21 +330,18 @@ async function runPlugin(ctx: any, options: any, dataDir: string) { parts.push(`
\nThinking\n\n${step.reasoning}\n\n
`) } - // Tool calls — all in one spoiler with tool names in summary + // Tool calls if (step.tools.length > 0) { - const toolNames = step.tools.map(t => t.name).join(", ") - parts.push(`
\n🔧 ${toolNames}\n\n`) for (const tool of step.tools) { - parts.push(`${tool.name}\n`) - parts.push(`Args:\n\`\`\`\n${tool.args}\n\`\`\`\n`) + parts.push(`
\n🔧 ${tool.name}\n\n`) + parts.push(`Args:\n\`\`\`\n${tool.args}\n\`\`\`\n\n`) if (tool.failed) { - parts.push(`Failed: ${tool.result}\n`) + parts.push(`Failed: ${tool.result}\n\n`) } else { - parts.push(`Result:\n\`\`\`\n${tool.result}\n\`\`\`\n`) + parts.push(`Result:\n\`\`\`\n${tool.result}\n\`\`\`\n\n`) } - parts.push("\n") + parts.push(`
`) } - parts.push(`
`) } // Separator before text