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
+11
View File
@@ -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,