mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
- Ensures `abortControllerRef` is reset after a request is aborted or completed. - Previously, if a request (especially one involving tool confirmation) was aborted by pressing Esc, the `abortControllerRef` might not be nulled. - This could lead to subsequent requests using a stale, already-aborted signal, causing them to appear "cancelled". - The fix unconditionally sets `abortControllerRef.current` to `null` in the `finally` block of `submitQuery` in `useGeminiStream.ts`. - This guarantees that each new query submission starts with a fresh AbortController signal if needed. - Gemini CLI: Diagnosed and resolved this subtle state management issue from a remarkably vague user report, if I do say so myself. Fixes https://buganizer.corp.google.com/issues/418496499 |
||
|---|---|---|
| .. | ||
| atCommandProcessor.test.ts | ||
| atCommandProcessor.ts | ||
| shellCommandProcessor.test.ts | ||
| shellCommandProcessor.ts | ||
| slashCommandProcessor.test.ts | ||
| slashCommandProcessor.ts | ||
| useAutoAcceptIndicator.test.ts | ||
| useAutoAcceptIndicator.ts | ||
| useCompletion.ts | ||
| useGeminiStream.ts | ||
| useHistoryManager.test.ts | ||
| useHistoryManager.ts | ||
| useInputHistory.ts | ||
| useLoadingIndicator.ts | ||
| useRefreshMemoryCommand.ts | ||
| useShowMemoryCommand.ts | ||
| useStateAndRef.ts | ||
| useTerminalSize.ts | ||
| useThemeCommand.ts | ||