refactor(sandbox): drop legacy memory shorthand

This commit is contained in:
Peter Steinberger
2026-01-12 22:42:57 +00:00
parent ec5099db89
commit 72100ba3ab
4 changed files with 2 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ describe("sandbox explain helpers", () => {
]);
});
it("supports legacy 'memory' shorthand and deny wins after expansion", () => {
it("denies still win after group expansion", () => {
const cfg: ClawdbotConfig = {
agents: {
defaults: {
@@ -75,7 +75,7 @@ describe("sandbox explain helpers", () => {
tools: {
sandbox: {
tools: {
allow: ["memory"],
allow: ["group:memory"],
deny: ["memory_get"],
},
},

View File

@@ -269,9 +269,6 @@ function expandToolGroupEntry(entry: string): string[] {
if (!raw) return [];
const lower = raw.toLowerCase();
// Back-compat shorthand: "memory" => "group:memory"
if (lower === "memory") return TOOL_GROUPS["group:memory"];
const group = TOOL_GROUPS[lower];
if (group) return group;
return [raw];