fix(cli): add enableShellOutputEfficiency to settings schema (#15560)

This commit is contained in:
Maple!
2025-12-27 03:07:33 +08:00
committed by GitHub
parent 21388a0a40
commit a26d195404
4 changed files with 24 additions and 0 deletions
+5
View File
@@ -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).
+2
View File
@@ -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,
+10
View File
@@ -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: {
+7
View File
@@ -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