Merge pull request #1473 from BlockHand/build-sandbox

feat: Customizing the sandbox environment
This commit is contained in:
tanzhenxin 2026-01-13 19:07:41 +08:00 committed by GitHub
commit 557e6397bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 95 additions and 13 deletions

View file

@ -360,10 +360,10 @@ export async function start_sandbox(
//
// note this can only be done with binary linked from gemini-cli repo
if (process.env['BUILD_SANDBOX']) {
if (!gcPath.includes('gemini-cli/packages/')) {
if (!gcPath.includes('qwen-code/packages/')) {
throw new FatalSandboxError(
'Cannot build sandbox using installed gemini binary; ' +
'run `npm link ./packages/cli` under gemini-cli repo to switch to linked binary.',
'Cannot build sandbox using installed Qwen Code binary; ' +
'run `npm link ./packages/cli` under QwenCode-cli repo to switch to linked binary.',
);
} else {
console.error('building sandbox ...');