diff options
| author | Seth Troisi <[email protected]> | 2025-05-05 20:48:34 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-05-05 20:54:12 +0000 |
| commit | bb52149a06012ddb5e5535d60decf40aa11ac344 (patch) | |
| tree | 99be8645e472f8a3fcca6e82f7dce50ac857d0fa /packages/cli/src/ui/hooks/useGeminiStream.ts | |
| parent | 415b757d4a7e654ebf6eae50b67498d0ae49f7f2 (diff) | |
Move Intro to Help and only display after help command.
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useGeminiStream.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index 2931bbc3..1761563b 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -48,6 +48,7 @@ const addHistoryItem = ( export const useGeminiStream = ( setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>, refreshStatic: () => void, + setShowHelp: React.Dispatch<React.SetStateAction<boolean>>, config: Config, openThemeDialog: () => void, ) => { @@ -74,6 +75,7 @@ export const useGeminiStream = ( const { handleSlashCommand, slashCommands } = useSlashCommandProcessor( setHistory, refreshStatic, + setShowHelp, setDebugMessage, getNextMessageId, openThemeDialog, @@ -154,6 +156,8 @@ export const useGeminiStream = ( messageIdCounterRef.current = 0; // Reset counter for this new submission let queryToSendToGemini: PartListUnion | null = null; + setShowHelp(false); + if (typeof query === 'string') { const trimmedQuery = query.trim(); setDebugMessage(`User query: '${trimmedQuery}'`); |
