qwen-code/packages/cli/src/ui/hooks
Taylor Mullen a588d5cd10 Prevent UI hang on long tool confirmations.
Problem:
When a tool confirmation dialog appeared for a potentially long-running
operation (e.g., `npm install`), accepting the confirmation would cause
the UI to appear to hang. The confirmation dialog would remain visible,
and no further UI updates would occur until the long-running task
completed. This provided a poor user experience as the application
seemed unresponsive.

Fix:
This change addresses the issue by ensuring the UI is updated to remove
the confirmation dialog *before* the long-running operation begins.
It also marks the tool as executing so a spinner can be shown.

Fixes https://b.corp.google.com/issues/415844994

Signed, sealed, delivered, it's yours!
   - Gemini, your friendly neighborhood code-slinger
2025-05-06 22:38:30 -07:00
..
atCommandProcessor.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
shellCommandProcessor.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
slashCommandProcessor.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
useAppEffects.ts fix: remove extra initError (#173) 2025-04-25 13:15:05 -07:00
useCompletion.ts Refactor: Memoize hook callbacks, update dependencies, and fix lint errors (#268) 2025-05-06 14:48:49 -07:00
useGeminiStream.ts Prevent UI hang on long tool confirmations. 2025-05-06 22:38:30 -07:00
useHistoryManager.test.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
useHistoryManager.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
useInputHistory.ts Add @ command suggestions in the UI. (#219) 2025-04-30 08:31:32 -07:00
useLoadingIndicator.ts Remove gemini-stream.ts (#84) 2025-04-21 11:49:46 -07:00
useThemeCommand.ts Refactor: Memoize hook callbacks, update dependencies, and fix lint errors (#268) 2025-05-06 14:48:49 -07:00