mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
fix(cli): add enableShellOutputEfficiency to settings schema (#15560)
This commit is contained in:
@@ -621,6 +621,11 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
shell command. Defaults to 5 minutes.
|
shell command. Defaults to 5 minutes.
|
||||||
- **Default:** `300`
|
- **Default:** `300`
|
||||||
|
|
||||||
|
- **`tools.shell.enableShellOutputEfficiency`** (boolean):
|
||||||
|
- **Description:** Enable shell output efficiency optimizations for better
|
||||||
|
performance.
|
||||||
|
- **Default:** `true`
|
||||||
|
|
||||||
- **`tools.autoAccept`** (boolean):
|
- **`tools.autoAccept`** (boolean):
|
||||||
- **Description:** Automatically accept and execute tool calls that are
|
- **Description:** Automatically accept and execute tool calls that are
|
||||||
considered safe (e.g., read-only operations).
|
considered safe (e.g., read-only operations).
|
||||||
|
|||||||
@@ -682,6 +682,8 @@ export async function loadCliConfig(
|
|||||||
enableInteractiveShell:
|
enableInteractiveShell:
|
||||||
settings.tools?.shell?.enableInteractiveShell ?? true,
|
settings.tools?.shell?.enableInteractiveShell ?? true,
|
||||||
shellToolInactivityTimeout: settings.tools?.shell?.inactivityTimeout,
|
shellToolInactivityTimeout: settings.tools?.shell?.inactivityTimeout,
|
||||||
|
enableShellOutputEfficiency:
|
||||||
|
settings.tools?.shell?.enableShellOutputEfficiency ?? true,
|
||||||
skipNextSpeakerCheck: settings.model?.skipNextSpeakerCheck,
|
skipNextSpeakerCheck: settings.model?.skipNextSpeakerCheck,
|
||||||
enablePromptCompletion: settings.general?.enablePromptCompletion ?? false,
|
enablePromptCompletion: settings.general?.enablePromptCompletion ?? false,
|
||||||
truncateToolOutputThreshold: settings.tools?.truncateToolOutputThreshold,
|
truncateToolOutputThreshold: settings.tools?.truncateToolOutputThreshold,
|
||||||
|
|||||||
@@ -953,6 +953,16 @@ const SETTINGS_SCHEMA = {
|
|||||||
'The maximum time in seconds allowed without output from the shell command. Defaults to 5 minutes.',
|
'The maximum time in seconds allowed without output from the shell command. Defaults to 5 minutes.',
|
||||||
showInDialog: false,
|
showInDialog: false,
|
||||||
},
|
},
|
||||||
|
enableShellOutputEfficiency: {
|
||||||
|
type: 'boolean',
|
||||||
|
label: 'Enable Shell Output Efficiency',
|
||||||
|
category: 'Tools',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: true,
|
||||||
|
description:
|
||||||
|
'Enable shell output efficiency optimizations for better performance.',
|
||||||
|
showInDialog: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
autoAccept: {
|
autoAccept: {
|
||||||
|
|||||||
@@ -1043,6 +1043,13 @@
|
|||||||
"markdownDescription": "The maximum time in seconds allowed without output from the shell command. Defaults to 5 minutes.\n\n- Category: `Tools`\n- Requires restart: `no`\n- Default: `300`",
|
"markdownDescription": "The maximum time in seconds allowed without output from the shell command. Defaults to 5 minutes.\n\n- Category: `Tools`\n- Requires restart: `no`\n- Default: `300`",
|
||||||
"default": 300,
|
"default": 300,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
"enableShellOutputEfficiency": {
|
||||||
|
"title": "Enable Shell Output Efficiency",
|
||||||
|
"description": "Enable shell output efficiency optimizations for better performance.",
|
||||||
|
"markdownDescription": "Enable shell output efficiency optimizations for better performance.\n\n- Category: `Tools`\n- Requires restart: `no`\n- Default: `true`",
|
||||||
|
"default": true,
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
|||||||
Reference in New Issue
Block a user