mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
add config: tool output char limit
This commit is contained in:
@@ -605,6 +605,7 @@ export async function loadCliConfig(
|
||||
shouldUseNodePtyShell: settings.shouldUseNodePtyShell,
|
||||
skipStartupContext: settings.skipStartupContext,
|
||||
skipNextSpeakerCheck: settings.skipNextSpeakerCheck,
|
||||
toolOutputCharLimit: settings.toolOutputCharLimit,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -577,6 +577,16 @@ export const SETTINGS_SCHEMA = {
|
||||
description: 'The maximum number of tokens allowed in a session.',
|
||||
showInDialog: false,
|
||||
},
|
||||
toolOutputCharLimit: {
|
||||
type: 'number',
|
||||
label: 'Tool Output Character Limit',
|
||||
category: 'General',
|
||||
requiresRestart: false,
|
||||
default: undefined as number | undefined,
|
||||
description:
|
||||
'Max characters for tool outputs (read_file, read_many_files, shell). If set, text content is truncated to this limit.',
|
||||
showInDialog: true,
|
||||
},
|
||||
systemPromptMappings: {
|
||||
type: 'object',
|
||||
label: 'System Prompt Mappings',
|
||||
|
||||
Reference in New Issue
Block a user