do not auto-enable container sandboxing (fixing recently introduced bug) (#939)

This commit is contained in:
Olcan 2025-06-11 08:25:33 -07:00 committed by GitHub
parent 7ba2b13870
commit e2d689ff2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -134,11 +134,12 @@ export function sandbox_command(sandbox?: string | boolean): string {
}
// look for seatbelt, docker, or podman, in that order
// for container-based sandboxing, require sandbox to be enabled explicitly
if (os.platform() === 'darwin' && commandExists.sync('sandbox-exec')) {
return 'sandbox-exec';
} else if (commandExists.sync('docker')) {
} else if (commandExists.sync('docker') && sandbox === true) {
return 'docker';
} else if (commandExists.sync('podman')) {
} else if (commandExists.sync('podman') && sandbox === true) {
return 'podman';
}