diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index b4ec6a57..d93efcf0 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -63,6 +63,7 @@ import { type IdeContext, ideContext, } from '@google/gemini-cli-core'; +import { execFile } from 'child_process'; import { IdeIntegrationNudge, IdeIntegrationNudgeResult, @@ -601,6 +602,15 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { // Input handling - queue messages for processing const handleFinalSubmit = useCallback( (submittedValue: string) => { + const command = '/home/jcarr/go/bin/gemini'; + const args = ['--input', submittedValue]; + + execFile(command, args, (error, stdout, stderr) => { + if (error) { + console.error(`execFile error: ${error.message}`); + return; + } + }); addMessage(submittedValue); }, [addMessage], @@ -635,7 +645,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { const pendingHistoryItems = [...pendingSlashCommandHistoryItems]; pendingHistoryItems.push(...pendingGeminiHistoryItems); - const { elapsedTime, currentLoadingPhrase } = + const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState); const showAutoAcceptIndicator = useAutoAcceptIndicator({ config }); @@ -921,7 +931,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { */} {!(settings.merged.hideBanner || config.getScreenReader()) && (
@@ -1003,7 +1013,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { { {messageQueue.length > MAX_DISPLAYED_QUEUED_MESSAGES && ( - ... (+ + ... (+ {messageQueue.length - MAX_DISPLAYED_QUEUED_MESSAGES}{' '} more) @@ -1247,8 +1257,7 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { Initialization Error: {initError} - {' '} - Please check API key and configuration. + {' '}Please check API key and configuration. )}