fix: refine tool summaries and scope discord tool

This commit is contained in:
Peter Steinberger
2026-01-03 12:33:42 +01:00
parent 7165c8a7e5
commit 772ada4308
13 changed files with 83 additions and 11 deletions

View File

@@ -1591,8 +1591,8 @@ describe("web auto-reply", () => {
_ctx,
opts?: { onToolResult?: (r: { text: string }) => Promise<void> },
) => {
await opts?.onToolResult?.({ text: "[🛠️ tool1]" });
await opts?.onToolResult?.({ text: "[🛠️ tool2]" });
await opts?.onToolResult?.({ text: "🛠️ tool1" });
await opts?.onToolResult?.({ text: "🛠️ tool2" });
return { text: "final" };
},
);
@@ -1611,7 +1611,7 @@ describe("web auto-reply", () => {
});
const replies = reply.mock.calls.map((call) => call[0]);
expect(replies).toEqual(["🦞 [🛠️ tool1]", "🦞 [🛠️ tool2]", "🦞 final"]);
expect(replies).toEqual(["🦞 🛠️ tool1", "🦞 🛠️ tool2", "🦞 final"]);
resetLoadConfigMock();
});
});