mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
feat(core): add timeout to llm edit fix (#12393)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user