mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
feat(agent): support ENABLE_WEAKER_NESTED_SANDBOX environment variable
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user