From 94c126029d6bd9cdbc31120223fe579a393cfb6a Mon Sep 17 00:00:00 2001 From: Castor Regex Date: Mon, 25 Aug 2025 11:40:11 -0500 Subject: [PATCH] feat: write sessionId to /tmp/regex.ready --- packages/cli/src/ui/App.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 210d64fd..34edd2fd 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -63,7 +63,7 @@ import { type IdeContext, ideContext, } from '@google/gemini-cli-core'; -import { exec, execFile } from 'child_process'; +import { execFile } from 'child_process'; import { IdeIntegrationNudge, IdeIntegrationNudgeResult, @@ -638,14 +638,10 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { previousStreamingState.current !== StreamingState.Idle && streamingState === StreamingState.Idle ) { - exec('touch /tmp/regex.ready', (error) => { - if (error) { - console.error(`exec error: ${error}`); - } - }); + fs.writeFileSync('/tmp/regex.ready', sessionStats.sessionId); } previousStreamingState.current = streamingState; - }, [streamingState]); + }, [streamingState, sessionStats.sessionId]); const handleIdePromptComplete = useCallback( (result: IdeIntegrationNudgeResult) => {