feat: write sessionId to /tmp/regex.ready

This commit is contained in:
Castor Regex 2025-08-25 11:40:11 -05:00 committed by Jeff Carr
parent 4063298293
commit 94c126029d
1 changed files with 3 additions and 7 deletions

View File

@ -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) => {