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

View File

@@ -621,6 +621,11 @@ their corresponding top-level category object in your `settings.json` file.
shell command. Defaults to 5 minutes.
- **Default:** `300`
- **`tools.shell.enableShellOutputEfficiency`** (boolean):
- **Description:** Enable shell output efficiency optimizations for better
performance.
- **Default:** `true`
- **`tools.autoAccept`** (boolean):
- **Description:** Automatically accept and execute tool calls that are
considered safe (e.g., read-only operations).

View File

@@ -682,6 +682,8 @@ export async function loadCliConfig(
enableInteractiveShell:
settings.tools?.shell?.enableInteractiveShell ?? true,
shellToolInactivityTimeout: settings.tools?.shell?.inactivityTimeout,
enableShellOutputEfficiency:
settings.tools?.shell?.enableShellOutputEfficiency ?? true,
skipNextSpeakerCheck: settings.model?.skipNextSpeakerCheck,
enablePromptCompletion: settings.general?.enablePromptCompletion ?? false,
truncateToolOutputThreshold: settings.tools?.truncateToolOutputThreshold,

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.',
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: {

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`",
"default": 300,
"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