Revert "fix: preserve run provider capability"

This reverts commit 63c86322de.
This commit is contained in:
2026-07-11 15:06:48 +08:00
parent 2ee84d9543
commit 12a2f3117f
5 changed files with 17 additions and 8 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ describe("agent subprocess security policy", () => {
allowRead: expect.arrayContaining([canonicalWorkspace, "/usr/bin"]),
},
credentials: {
envVars: [],
envVars: expect.arrayContaining([
{ name: "ANTHROPIC_AUTH_TOKEN", mode: "deny" },
{ name: "ANTHROPIC_API_KEY", mode: "deny" },
]),
},
});
});
+4 -1
View File
@@ -288,7 +288,10 @@ describe("runAgent", () => {
},
sandbox: {
credentials: {
envVars: [],
envVars: expect.arrayContaining([
{ name: "ANTHROPIC_AUTH_TOKEN", mode: "deny" },
{ name: "ANTHROPIC_API_KEY", mode: "deny" },
]),
},
},
},