feat(sandbox): allow image tool

This commit is contained in:
Peter Steinberger
2026-01-12 17:56:48 +00:00
parent 44e1f271c8
commit d24de1ec3b
6 changed files with 68 additions and 3 deletions

View File

@@ -486,4 +486,22 @@ describe("Agent-specific sandbox config", () => {
const sandbox = resolveSandboxConfigForAgent(cfg, "main");
expect(sandbox.tools.allow).toContain("session_status");
});
it("includes image in default sandbox allowlist", async () => {
const { resolveSandboxConfigForAgent } = await import("./sandbox.js");
const cfg: ClawdbotConfig = {
agents: {
defaults: {
sandbox: {
mode: "all",
scope: "agent",
},
},
},
};
const sandbox = resolveSandboxConfigForAgent(cfg, "main");
expect(sandbox.tools.allow).toContain("image");
});
});