Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/cli/src/ui/hooks/useGeminiStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2942,6 +2942,15 @@ export const useGeminiStream = (
// a new conversation turn (cleared in submitQuery).
if (retryCountdownTimerRef.current) {
clearRetryCountdown();
} else if (pendingRetryErrorItemRef.current) {
// A static error+hint is still showing but we reached the turn
// completion path — the error was auto-recovered mid-turn (e.g.
// a transient socket drop during a tool-use loop that the stream
// processor retried successfully). Clear the stale error so it
// doesn't linger on screen, and reset the errored flag so the
// turn is correctly reported as delivered.
setPendingRetryErrorItem(null);
lastPromptErroredRef.current = false;
}
Comment thread
qwen-code-dev-bot marked this conversation as resolved.
Outdated
Comment thread
qwen-code-dev-bot marked this conversation as resolved.
Outdated
Comment thread
qwen-code-dev-bot marked this conversation as resolved.
const loopDetected = loopDetectedRef.current;
if (loopDetected) {
Expand Down
Loading