diff options
| author | Seth Troisi <[email protected]> | 2025-04-30 22:26:28 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-04-30 22:32:29 +0000 |
| commit | 2616e965a7caa39d731bda881db5a2feb851aa34 (patch) | |
| tree | 96c2e6e0eea6a8b976f2c0c43d51d0f1659789af /packages/cli/src/ui/App.tsx | |
| parent | 5f5edb4c9bac24c4875ffc1a5a97ad8cf11f4436 (diff) | |
Moved theme to slashCommand
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 8b219778..8aaa1018 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -36,34 +36,32 @@ export const App = ({ config, cliVersion }: AppProps) => { const [history, setHistory] = useState<HistoryItem[]>([]); const [startupWarnings, setStartupWarnings] = useState<string[]>([]); const { + isThemeDialogOpen, + openThemeDialog, + handleThemeSelect, + handleThemeHighlight, + } = useThemeCommand(); + + const { streamingState, submitQuery, initError, debugMessage, slashCommands, - } = useGeminiStream(setHistory, config); + } = useGeminiStream(setHistory, config, openThemeDialog); const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState); - const { - isThemeDialogOpen, - openThemeDialog, - handleThemeSelect, - handleThemeHighlight, - } = useThemeCommand(); - useStartupWarnings(setStartupWarnings); const handleFinalSubmit = useCallback( (submittedValue: string) => { const trimmedValue = submittedValue.trim(); - if (trimmedValue === '/theme') { - openThemeDialog(); - } else if (trimmedValue.length > 0) { + if (trimmedValue.length > 0) { submitQuery(submittedValue); } }, - [openThemeDialog, submitQuery], + [submitQuery], ); const userMessages = useMemo( |
