mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 05:55:17 -07:00
feat(core): Enable tool output truncation by default (#9983)
This commit is contained in:
@@ -761,7 +761,7 @@ const SETTINGS_SCHEMA = {
|
|||||||
label: 'Enable Tool Output Truncation',
|
label: 'Enable Tool Output Truncation',
|
||||||
category: 'General',
|
category: 'General',
|
||||||
requiresRestart: true,
|
requiresRestart: true,
|
||||||
default: false,
|
default: true,
|
||||||
description: 'Enable truncation of large tool outputs.',
|
description: 'Enable truncation of large tool outputs.',
|
||||||
showInDialog: true,
|
showInDialog: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -427,8 +427,7 @@ export class Config {
|
|||||||
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD;
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD;
|
||||||
this.truncateToolOutputLines =
|
this.truncateToolOutputLines =
|
||||||
params.truncateToolOutputLines ?? DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES;
|
params.truncateToolOutputLines ?? DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES;
|
||||||
this.enableToolOutputTruncation =
|
this.enableToolOutputTruncation = params.enableToolOutputTruncation ?? true;
|
||||||
params.enableToolOutputTruncation ?? false;
|
|
||||||
this.useSmartEdit = params.useSmartEdit ?? true;
|
this.useSmartEdit = params.useSmartEdit ?? true;
|
||||||
this.useWriteTodos = params.useWriteTodos ?? false;
|
this.useWriteTodos = params.useWriteTodos ?? false;
|
||||||
this.useModelRouter = params.useModelRouter ?? false;
|
this.useModelRouter = params.useModelRouter ?? false;
|
||||||
|
|||||||
Reference in New Issue
Block a user