mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
feat(core): add disableLLMCorrection setting to skip auto-correction in edit tools (#16000)
This commit is contained in:
@@ -639,6 +639,17 @@ class EditToolInvocation
|
||||
};
|
||||
}
|
||||
|
||||
if (this.config.getDisableLLMCorrection()) {
|
||||
return {
|
||||
currentContent,
|
||||
newContent: currentContent,
|
||||
occurrences: replacementResult.occurrences,
|
||||
isNewFile: false,
|
||||
error: initialError,
|
||||
originalLineEnding,
|
||||
};
|
||||
}
|
||||
|
||||
// If there was an error, try to self-correct.
|
||||
return this.attemptSelfCorrection(
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user