fix: prevent infinite loop in prompt completion on error (#14548)

This commit is contained in:
Gal Zahavi
2025-12-18 15:34:46 -08:00
committed by GitHub
parent 9e6914d641
commit 1e10492e55

View File

@@ -142,8 +142,6 @@ export function usePromptCompletion({
debugLogger.warn(
`[WARN] prompt completion failed: : (${error instanceof Error ? error.message : String(error)})`,
);
// Clear the last requested text to allow retry only on real errors
lastRequestedTextRef.current = '';
}
clearGhostText();
} finally {