diff options
| author | Castor Regex <[email protected]> | 2025-08-25 11:40:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-25 11:40:11 -0500 |
| commit | 94c126029d6bd9cdbc31120223fe579a393cfb6a (patch) | |
| tree | 4f0d57436fc0264e0b254adc7e0746329bebea2f | |
| parent | 40632982937367c89d23d786ac93cfa7cb5b0668 (diff) | |
feat: write sessionId to /tmp/regex.ready
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 10 |
1 files 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) => { |
