From 1d20cedf033f9c9a8f27812020fead584510bf84 Mon Sep 17 00:00:00 2001 From: Tolik Malibroda <54813212+tolikmalibroda@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:47:39 +0200 Subject: fix: Disable automatic image building if BUILD_SANDBOX is not provided (#764) --- packages/cli/src/utils/sandbox.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packages/cli/src/utils') diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index 9fb3da69..2b672ef5 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -285,11 +285,10 @@ export async function start_sandbox(sandbox: string) { const image = await getSandboxImageName(isCustomProjectSandbox); const workdir = process.cwd(); - // if BUILD_SANDBOX is set or project-specific sandbox.Dockerfile provided, - // then call scripts/build_sandbox.sh under gemini-cli repo + // if BUILD_SANDBOX is set, then call scripts/build_sandbox.sh under gemini-cli repo // // note this can only be done with binary linked from gemini-cli repo - if (process.env.BUILD_SANDBOX || isCustomProjectSandbox) { + if (process.env.BUILD_SANDBOX) { if (!gcPath.includes('gemini-cli/packages/')) { console.error( 'ERROR: cannot build sandbox using installed gemini binary; ' + -- cgit v1.2.3