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, type IdeContext,
ideContext, ideContext,
} from '@google/gemini-cli-core'; } from '@google/gemini-cli-core';
import { exec, execFile } from 'child_process'; import { execFile } from 'child_process';
import { import {
IdeIntegrationNudge, IdeIntegrationNudge,
IdeIntegrationNudgeResult, IdeIntegrationNudgeResult,
@ -638,14 +638,10 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
previousStreamingState.current !== StreamingState.Idle && previousStreamingState.current !== StreamingState.Idle &&
streamingState === StreamingState.Idle streamingState === StreamingState.Idle
) { ) {
exec('touch /tmp/regex.ready', (error) => { fs.writeFileSync('/tmp/regex.ready', sessionStats.sessionId);
if (error) {
console.error(`exec error: ${error}`);
}
});
} }
previousStreamingState.current = streamingState; previousStreamingState.current = streamingState;
}, [streamingState]); }, [streamingState, sessionStats.sessionId]);
const handleIdePromptComplete = useCallback( const handleIdePromptComplete = useCallback(
(result: IdeIntegrationNudgeResult) => { (result: IdeIntegrationNudgeResult) => {