feat: allow session_status in sandbox

This commit is contained in:
Peter Steinberger
2026-01-09 23:35:35 +00:00
parent a25922a21f
commit bd10f3d3f1
7 changed files with 29 additions and 9 deletions

View File

@@ -468,4 +468,22 @@ describe("Agent-specific sandbox config", () => {
deny: ["edit"],
});
});
it("includes session_status 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("session_status");
});
});

View File

@@ -141,6 +141,7 @@ const DEFAULT_TOOL_ALLOW = [
"sessions_history",
"sessions_send",
"sessions_spawn",
"session_status",
];
const DEFAULT_TOOL_DENY = [
"browser",