feat(agent): support ENABLE_WEAKER_NESTED_SANDBOX environment variable

This commit is contained in:
yiling
2026-07-28 18:28:16 +08:00
parent 4bd166d7b9
commit bca2d26e1d
6 changed files with 94 additions and 1 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ export async function createAgentSession(params: CreateAgentSessionParams) {
allowWrite,
denyWrite: ['.env', '.env.*', '*.pem', '*.key'],
},
enableWeakerNestedSandbox: true,
enableWeakerNestedSandbox: process.env.ENABLE_WEAKER_NESTED_SANDBOX === 'true',
},
sandboxAskCallback,
)