mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
fix(core): enhance sandbox usability and fix build error (#24460)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -24,10 +24,6 @@ export function createSandboxManager(
|
||||
options: GlobalSandboxOptions,
|
||||
approvalMode?: string,
|
||||
): SandboxManager {
|
||||
if (approvalMode === 'yolo') {
|
||||
return new NoopSandboxManager();
|
||||
}
|
||||
|
||||
if (!options.modeConfig && options.policyManager && approvalMode) {
|
||||
options.modeConfig = options.policyManager.getModeConfig(approvalMode);
|
||||
}
|
||||
@@ -40,8 +36,8 @@ export function createSandboxManager(
|
||||
} else if (os.platform() === 'darwin') {
|
||||
return new MacOsSandboxManager(options);
|
||||
}
|
||||
return new LocalSandboxManager();
|
||||
return new LocalSandboxManager(options);
|
||||
}
|
||||
|
||||
return new NoopSandboxManager();
|
||||
return new NoopSandboxManager(options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user