From c1486c47eeedcea065d69ced1f6b454e86ff3191 Mon Sep 17 00:00:00 2001 From: Eddie Santos <9561596+eddie-santos@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:40:10 -0700 Subject: fix: auto-update sandbox regression (#1221) --- packages/cli/src/config/sandboxConfig.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/cli/src/config') diff --git a/packages/cli/src/config/sandboxConfig.ts b/packages/cli/src/config/sandboxConfig.ts index e0adf0ac..59e19a49 100644 --- a/packages/cli/src/config/sandboxConfig.ts +++ b/packages/cli/src/config/sandboxConfig.ts @@ -30,6 +30,11 @@ function isSandboxCommand(value: string): value is SandboxConfig['command'] { function getSandboxCommand( sandbox?: boolean | string, ): SandboxConfig['command'] | '' { + // If the SANDBOX env var is set, we're already inside the sandbox. + if (process.env.SANDBOX) { + return ''; + } + // 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; -- cgit v1.2.3