diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-10 06:22:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-10 06:22:02 -0700 |
| commit | 895c1f132f9d1cc88bd56584e461fd22a5f23394 (patch) | |
| tree | ca518af6513dd5310a8be095fecf2ca89ff27c65 /packages/cli/src/config/config.ts | |
| parent | 1e3abf96b5fa898f6bfdeeb4c670f74b81eb97fd (diff) | |
GEMINI_SANDBOX=false should disable seatbelt (#888)
Diffstat (limited to 'packages/cli/src/config/config.ts')
| -rw-r--r-- | packages/cli/src/config/config.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 83cfb296..69257c78 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -143,10 +143,15 @@ export async function loadCliConfig( const contentGeneratorConfig = await createContentGeneratorConfig(argv); + let sandbox = argv.sandbox ?? settings.sandbox; + if (argv.yolo) { + sandbox = false; + } + return new Config({ contentGeneratorConfig, embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL, - sandbox: argv.sandbox ?? settings.sandbox ?? argv.yolo ?? false, + sandbox, targetDir: process.cwd(), debugMode, question: argv.prompt || '', |
