mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 14:23:02 -07:00
fix(core): resolve getErrorMessage visibility and sandbox setting parsing
Moves the getErrorMessage import to the top of config.ts to avoid circularity-induced TS2304 in some environments. Also fixes a TypeError in sandbox_command.js when modern object-style sandbox settings are used in settings.json.
This commit is contained in:
@@ -70,7 +70,11 @@ if (!geminiSandbox) {
|
||||
geminiSandbox = process.env.GEMINI_SANDBOX;
|
||||
}
|
||||
|
||||
geminiSandbox = (geminiSandbox || '').toLowerCase();
|
||||
if (typeof geminiSandbox === 'object' && geminiSandbox !== null) {
|
||||
geminiSandbox = geminiSandbox.enabled ? 'true' : 'false';
|
||||
}
|
||||
|
||||
geminiSandbox = (geminiSandbox || '').toString().toLowerCase();
|
||||
|
||||
const commandExists = (cmd) => {
|
||||
const checkCommand = os.platform() === 'win32' ? 'where' : 'command -v';
|
||||
|
||||
Reference in New Issue
Block a user