Enable tool summarization only when explicitly set in settings.json (#4140)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
anj-s
2025-07-15 10:22:31 -07:00
committed by GitHub
parent 7effdad3e2
commit d3ee9de3c3
8 changed files with 153 additions and 20 deletions

View File

@@ -363,6 +363,7 @@ export async function loadCliConfig(
version: e.config.version,
})),
noBrowser: !!process.env.NO_BROWSER,
summarizeToolOutput: settings.summarizeToolOutput,
ideMode,
});
}

View File

@@ -46,6 +46,10 @@ export interface CheckpointingSettings {
enabled?: boolean;
}
export interface SummarizeToolOutputSettings {
tokenBudget?: number;
}
export interface AccessibilitySettings {
disableLoadingPhrases?: boolean;
}
@@ -84,6 +88,9 @@ export interface Settings {
// Setting for setting maximum number of user/model/tool turns in a session.
maxSessionTurns?: number;
// A map of tool names to their summarization settings.
summarizeToolOutput?: Record<string, SummarizeToolOutputSettings>;
// Add other settings here.
ideMode?: boolean;
}