diff options
| author | N. Taylor Mullen <[email protected]> | 2025-06-19 02:15:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-19 02:15:02 -0700 |
| commit | 3621ea0cb6d5169ee625b1c058edc7044a9f8852 (patch) | |
| tree | cc7c0138895cfabd8a88a1277f22c2c085705078 /packages/cli/src/config/sandboxConfig.ts | |
| parent | b49d55584e67d0f147fb0b7e3c9526c2e2ed5ad9 (diff) | |
Change sandbox default (#1214)
Diffstat (limited to 'packages/cli/src/config/sandboxConfig.ts')
| -rw-r--r-- | packages/cli/src/config/sandboxConfig.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/config/sandboxConfig.ts b/packages/cli/src/config/sandboxConfig.ts index 5a86aed0..e0adf0ac 100644 --- a/packages/cli/src/config/sandboxConfig.ts +++ b/packages/cli/src/config/sandboxConfig.ts @@ -33,13 +33,13 @@ function getSandboxCommand( // note environment variable takes precedence over argument (from command line or settings) sandbox = process.env.GEMINI_SANDBOX?.toLowerCase().trim() ?? sandbox; if (sandbox === '1' || sandbox === 'true') sandbox = true; - else if (sandbox === '0' || sandbox === 'false') sandbox = false; + else if (sandbox === '0' || sandbox === 'false' || !sandbox) sandbox = false; if (sandbox === false) { return ''; } - if (typeof sandbox === 'string' && sandbox !== '') { + if (typeof sandbox === 'string' && sandbox) { if (!isSandboxCommand(sandbox)) { console.error( `ERROR: invalid sandbox command '${sandbox}'. Must be one of ${VALID_SANDBOX_COMMANDS.join( |
