qwen-code/packages/cli/src/ui/hooks
Taylor Mullen 8440b971f5 Fix(cli): Prevent premature input box reactivation during tool confirmation
- Introduced a 'validating' state for tool calls to prevent the input box from reappearing while waiting for a tool's `shouldConfirmExecute` method to complete.
- When a tool call is initiated, it's now immediately set to a 'validating' status. This ensures the UI remains in a busy/responding state.
- `useGeminiStream` now considers the 'validating' state as part of `StreamingState.Responding`.
- `useToolScheduler` has been updated to:
    - Set the initial status of new tool calls to 'validating'.
    - Asynchronously perform the `shouldConfirmExecute` check.
    - Transition to 'awaiting_approval' or 'scheduled' based on the check's outcome.
- This resolves an issue where a slow `shouldConfirmExecute` could lead to the input prompt becoming active again before the tool call lifecycle was fully determined. While 'validating' is currently treated similarly to 'executing' in the UI, this new state provides a foundation for more customized user experiences during this phase in the future.

Fixes https://github.com/google-gemini/gemini-cli/issues/527
2025-05-25 16:06:33 -07:00
..
atCommandProcessor.test.ts Support Images and PDFs (#447) 2025-05-20 13:02:41 -07:00
atCommandProcessor.ts Add globbing support to @-command file suggestions and resolution. (#462) 2025-05-21 12:22:18 -07:00
shellCommandProcessor.test.ts use pending history item for shell mode, update as output is received (#471) 2025-05-21 13:16:50 -07:00
shellCommandProcessor.ts use pending history item for shell mode, update as output is received (#471) 2025-05-21 13:16:50 -07:00
slashCommandProcessor.test.ts Refactor(cli): Move memory add logic to server tool call (#493) 2025-05-23 08:47:19 -07:00
slashCommandProcessor.ts Update packages/cli/src/ui/hooks/slashCommandProcessor.ts 2025-05-23 16:14:37 -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 Add globbing support to @-command file suggestions and resolution. (#462) 2025-05-21 12:22:18 -07:00
useConsoleMessages.test.ts Make console message support more robust to logging in the middle of rendering. (#521) 2025-05-23 22:51:47 -07:00
useConsoleMessages.ts Make console message support more robust to logging in the middle of rendering. (#521) 2025-05-23 22:51:47 -07:00
useGeminiStream.ts Fix(cli): Prevent premature input box reactivation during tool confirmation 2025-05-25 16:06:33 -07:00
useHistoryManager.test.ts
useHistoryManager.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useInputHistory.test.ts Fix bug updating the cursor after navigating history. (#507) 2025-05-23 09:40:01 -07:00
useInputHistory.ts Fix bug updating the cursor after navigating history. (#507) 2025-05-23 09:40:01 -07:00
useLoadingIndicator.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useLoadingIndicator.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useLogger.ts Add Logger for command history (#435) 2025-05-21 00:36:22 -07:00
usePhraseCycler.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
usePhraseCycler.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useRefreshMemoryCommand.ts This commit introduces the hierarchical memory feature, allowing GEMI… (#327) 2025-05-14 12:37:17 -07:00
useShowMemoryCommand.ts Refactor(server): Centralize GEMINI.md discovery logic in server (#498) 2025-05-23 08:53:22 -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
useTimer.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useTimer.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useToolScheduler.ts Fix(cli): Prevent premature input box reactivation during tool confirmation 2025-05-25 16:06:33 -07:00