mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix: prevent infinite loop in prompt completion on error (#14548)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user