qwen-code/packages/cli/src/ui/hooks
Taylor Mullen bda472f147 fix(cli): Prevent request cancellation after multiple Esc presses
- 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
2025-05-20 23:58:53 -07:00
..
atCommandProcessor.test.ts Support Images and PDFs (#447) 2025-05-20 13:02:41 -07:00
atCommandProcessor.ts Support Images and PDFs (#447) 2025-05-20 13:02:41 -07:00
shellCommandProcessor.test.ts fix(cli): Prevent truncation of first character in shell commands 2025-05-20 00:23:12 -07:00
shellCommandProcessor.ts fix(cli): Prevent truncation of first character in shell commands 2025-05-20 00:23:12 -07:00
slashCommandProcessor.test.ts feat(cli): Implement /bug command and add open dependency (#428) 2025-05-19 16:56:32 -07:00
slashCommandProcessor.ts feat(cli): Implement /bug command and add open dependency (#428) 2025-05-19 16:56:32 -07:00
useAutoAcceptIndicator.test.ts feat: Add auto-accept indicator and toggle 2025-05-17 22:27:22 -07:00
useAutoAcceptIndicator.ts feat: Add auto-accept indicator and toggle 2025-05-17 22:27:22 -07:00
useCompletion.ts Introduce a small easter egg. Woof. (#412) 2025-05-17 21:57:27 -07:00
useGeminiStream.ts fix(cli): Prevent request cancellation after multiple Esc presses 2025-05-20 23:58:53 -07:00
useHistoryManager.test.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
useHistoryManager.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useInputHistory.ts Multiline editor (#302) 2025-05-13 11:24:04 -07:00
useLoadingIndicator.ts Remove gemini-stream.ts (#84) 2025-04-21 11:49:46 -07:00
useRefreshMemoryCommand.ts This commit introduces the hierarchical memory feature, allowing GEMI… (#327) 2025-05-14 12:37:17 -07:00
useShowMemoryCommand.ts This commit introduces the hierarchical memory feature, allowing GEMI… (#327) 2025-05-14 12:37:17 -07:00
useStateAndRef.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useTerminalSize.ts Multiline editor (#302) 2025-05-13 11:24:04 -07:00
useThemeCommand.ts feat: Improve theme not found handling 2025-05-09 10:28:20 -07:00