refactor: simplify tool output truncation to single config (#18446)

This commit is contained in:
Sandy Tao
2026-02-06 13:41:19 -08:00
committed by GitHub
parent fd72a8c40f
commit 28805a4b2d
22 changed files with 56 additions and 189 deletions

View File

@@ -1180,25 +1180,11 @@
"default": true,
"type": "boolean"
},
"enableToolOutputTruncation": {
"title": "Enable Tool Output Truncation",
"description": "Enable truncation of large tool outputs.",
"markdownDescription": "Enable truncation of large tool outputs.\n\n- Category: `General`\n- Requires restart: `yes`\n- Default: `true`",
"default": true,
"type": "boolean"
},
"truncateToolOutputThreshold": {
"title": "Tool Output Truncation Threshold",
"description": "Truncate tool output if it is larger than this many characters. Set to -1 to disable.",
"markdownDescription": "Truncate tool output if it is larger than this many characters. Set to -1 to disable.\n\n- Category: `General`\n- Requires restart: `yes`\n- Default: `4000000`",
"default": 4000000,
"type": "number"
},
"truncateToolOutputLines": {
"title": "Tool Output Truncation Lines",
"description": "The number of lines to keep when truncating tool output.",
"markdownDescription": "The number of lines to keep when truncating tool output.\n\n- Category: `General`\n- Requires restart: `yes`\n- Default: `1000`",
"default": 1000,
"description": "Maximum characters to show when truncating large tool outputs. Set to 0 or negative to disable truncation.",
"markdownDescription": "Maximum characters to show when truncating large tool outputs. Set to 0 or negative to disable truncation.\n\n- Category: `General`\n- Requires restart: `yes`\n- Default: `40000`",
"default": 40000,
"type": "number"
},
"disableLLMCorrection": {