fix: route feishu doc tools by agent account context (#27338) (thanks @AaronL725)

This commit is contained in:
Peter Steinberger
2026-02-26 13:00:15 +01:00
parent 58c100f66f
commit 39b5ffdaa6
5 changed files with 136 additions and 73 deletions

View File

@@ -104,6 +104,7 @@ describe("feishu_doc image fetch hardening", () => {
const feishuDocTool = registerTool.mock.calls
.map((call) => call[0])
.map((tool) => (typeof tool === "function" ? tool({}) : tool))
.find((tool) => tool.name === "feishu_doc");
expect(feishuDocTool).toBeDefined();