diff options
| author | Jacob Richman <[email protected]> | 2025-05-28 19:46:08 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-28 12:46:08 -0700 |
| commit | 00805cb2cdd9786451b9a3a6746f11f47535288d (patch) | |
| tree | d8cfed9d765c826805fb839e37c2d08b42446e2b /packages/cli/src/ui/App.tsx | |
| parent | 05a49702d888bee912682f78c3993d98f7f9d628 (diff) | |
Cleanup: Remove low value StreamingContextType interface. (#585)
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 727450c0..ac508fbf 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -41,10 +41,7 @@ import { useHistory } from './hooks/useHistoryManager.js'; import process from 'node:process'; import { getErrorMessage, type Config } from '@gemini-code/server'; import { useLogger } from './hooks/useLogger.js'; -import { - StreamingContext, - StreamingContextType, -} from './contexts/StreamingContext.js'; +import { StreamingContext } from './contexts/StreamingContext.js'; interface AppProps { config: Config; @@ -182,11 +179,6 @@ export const App = ({ useLoadingIndicator(streamingState); const showAutoAcceptIndicator = useAutoAcceptIndicator({ config }); - const streamingContextValue: StreamingContextType = useMemo( - () => ({ streamingState }), - [streamingState], - ); - const handleFinalSubmit = useCallback( (submittedValue: string) => { const trimmedValue = submittedValue.trim(); @@ -278,7 +270,7 @@ export const App = ({ }, [consoleMessages, config]); return ( - <StreamingContext.Provider value={streamingContextValue}> + <StreamingContext.Provider value={streamingState}> <Box flexDirection="column" marginBottom={1} width="90%"> {/* * The Static component is an Ink intrinsic in which there can only be 1 per application. |
