qwen-code/packages/cli/src/ui/hooks
Amir Hardon 1c486a4050 Fix: Prevent CLI from crashing when a configured theme is not found
Previously, if a theme specified in the user's settings was not found, the CLI would crash during startup. This was particularly affecting users upgrading from older versions as the "ANSI colors only" theme was renamed to "ANSI".

This commit adds error handling to catch the theme not found error during initial loading and when setting themes later. Instead of crashing, the application now logs a warning, displays an error message in the UI, and opens the theme selection dialog to allow the user to choose a valid theme.
2025-05-08 22:33:46 -07:00
..
atCommandProcessor.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -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 init 2025-05-07 23:47:58 -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 Refactor: Enhance @-command, Autocomplete, and Input Stability (#279) 2025-05-07 12:30:32 -07:00
useLoadingIndicator.ts Remove gemini-stream.ts (#84) 2025-04-21 11:49:46 -07:00
useStateAndRef.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useThemeCommand.ts Fix: Prevent CLI from crashing when a configured theme is not found 2025-05-08 22:33:46 -07:00