diff options
| author | Juliette Love <[email protected]> | 2025-04-20 20:20:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-20 20:20:40 +0100 |
| commit | a66ad2e2af3d4ffd0a7ab125215e7ed3c3325452 (patch) | |
| tree | 3e2090bee220f92dec467cc0f4e7e58b5df3fce5 /packages/cli/src/ui/App.tsx | |
| parent | 99f5ed9ecb2aa491612ecaed4139cdeda086681f (diff) | |
Simple debug mode for CLI side (#66)
* Adds debug mode config flag.
* Wire through debug lines
* Add debug mode logging example
* Run format
* Run format again
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 14b76c8f..cfbc024e 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -31,11 +31,8 @@ interface AppProps { export const App = ({ config }: AppProps) => { const [history, setHistory] = useState<HistoryItem[]>([]); const [startupWarnings, setStartupWarnings] = useState<string[]>([]); - const { streamingState, submitQuery, initError } = useGeminiStream( - setHistory, - config.getApiKey(), - config.getModel(), - ); + const { streamingState, submitQuery, initError, debugMessage } = + useGeminiStream(setHistory, config.getApiKey(), config.getModel()); const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState); @@ -147,7 +144,11 @@ export const App = ({ config }: AppProps) => { </> )} - <Footer queryLength={query.length} /> + <Footer + queryLength={query.length} + debugMode={config.getDebugMode()} + debugMessage={debugMessage} + /> <ITermDetectionWarning /> </Box> ); |
