Change yolo mode so it doesn't disable sandboxing. (#918)

This commit is contained in:
Tommaso Sciortino 2025-06-10 17:41:59 -07:00 committed by GitHub
parent b92fa78a1e
commit e92b7dfd74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -147,15 +147,10 @@ export async function loadCliConfig(
const mcpServers = mergeMcpServers(settings, extensions);
let sandbox = argv.sandbox ?? settings.sandbox;
if (argv.yolo) {
sandbox = false;
}
return new Config({
contentGeneratorConfig,
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
sandbox,
sandbox: argv.sandbox ?? settings.sandbox,
targetDir: process.cwd(),
debugMode,
question: argv.prompt || '',