feat(core): add timeout to llm edit fix (#12393)

This commit is contained in:
anthony bushong
2025-11-03 16:04:51 -08:00
committed by GitHub
parent 80673a0c0c
commit f3759381b1
3 changed files with 99 additions and 11 deletions
+12
View File
@@ -426,6 +426,18 @@ class EditToolInvocation
abortSignal,
);
// If the self-correction attempt timed out, return the original error.
if (fixedEdit === null) {
return {
currentContent: contentForLlmEditFixer,
newContent: currentContent,
occurrences: 0,
isNewFile: false,
error: initialError,
originalLineEnding,
};
}
if (fixedEdit.noChangesRequired) {
return {
currentContent,