feat(core): add disableLLMCorrection setting to skip auto-correction in edit tools (#16000)

This commit is contained in:
Sandy Tao
2026-01-13 09:26:53 +08:00
committed by GitHub
parent 2fc61685a3
commit b81fe68325
13 changed files with 221 additions and 12 deletions
+7
View File
@@ -358,6 +358,7 @@ export interface ConfigParameters {
skillsSupport?: boolean;
disabledSkills?: string[];
experimentalJitContext?: boolean;
disableLLMCorrection?: boolean;
onModelChange?: (model: string) => void;
mcpEnabled?: boolean;
extensionsEnabled?: boolean;
@@ -497,6 +498,7 @@ export class Config {
private disabledSkills: string[];
private readonly experimentalJitContext: boolean;
private readonly disableLLMCorrection: boolean;
private contextManager?: ContextManager;
private terminalBackground: string | undefined = undefined;
private remoteAdminSettings: GeminiCodeAssistSetting | undefined;
@@ -566,6 +568,7 @@ export class Config {
this.model = params.model;
this._activeModel = params.model;
this.enableAgents = params.enableAgents ?? false;
this.disableLLMCorrection = params.disableLLMCorrection ?? false;
this.skillsSupport = params.skillsSupport ?? false;
this.disabledSkills = params.disabledSkills ?? [];
this.modelAvailabilityService = new ModelAvailabilityService();
@@ -1426,6 +1429,10 @@ export class Config {
return this.enableExtensionReloading;
}
getDisableLLMCorrection(): boolean {
return this.disableLLMCorrection;
}
isAgentsEnabled(): boolean {
return this.enableAgents;
}