diff options
| author | Olcan <[email protected]> | 2025-04-29 10:52:05 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-29 10:52:05 -0700 |
| commit | 4793e86f04d84b8fe8887e3db08b8694315d38a1 (patch) | |
| tree | 75e771111b9713c8f5bed468f5f5967e3b6cefa5 /packages/cli/src | |
| parent | 4cb7386ec65b1c71aec4cec2600d43511f9323ef (diff) | |
do not even check sandboxing commands (podman/docker/etc) if we are already in sandbox (#213)
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/gemini.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/cli/src/gemini.ts b/packages/cli/src/gemini.ts index 15bb9904..9de81c08 100644 --- a/packages/cli/src/gemini.ts +++ b/packages/cli/src/gemini.ts @@ -252,12 +252,14 @@ async function main() { const config = loadCliConfig(); let input = config.getQuestion(); - // hop into sandbox if enabled but outside - const sandbox = sandbox_command(); - if (sandbox && !process.env.SANDBOX) { - console.log('hopping into sandbox ...'); - await start_sandbox(sandbox); - process.exit(0); + // hop into sandbox if we are outside and sandboxing is enabled + if (!process.env.SANDBOX) { + const sandbox = sandbox_command(); + if (sandbox) { + console.log('hopping into sandbox ...'); + await start_sandbox(sandbox); + process.exit(0); + } } // Render UI, passing necessary config values. Check that there is no command line question. |
