fix(tools): honor agent tool denylist without sandbox

This commit is contained in:
Peter Steinberger committed 2026-01-05 00:02:14 +01:00
1 parent d9a9f6db7d
commit 4dd515b65f
4 files changed
+27 -2

No files matched your search

+8
View File
@@ -195,4 +195,12 @@ describe("createClawdbotCodingTools", () => {
expect(tools.some((tool) => tool.name === "read")).toBe(false);
expect(tools.some((tool) => tool.name === "browser")).toBe(false);
});
it("filters tools by agent tool policy even without sandbox", () => {
const tools = createClawdbotCodingTools({
config: { agent: { tools: { deny: ["browser"] } } },
});
expect(tools.some((tool) => tool.name === "bash")).toBe(true);
expect(tools.some((tool) => tool.name === "browser")).toBe(false);
});
});