feat: write sessionId to /tmp/regex.ready
This commit is contained in:
parent
4063298293
commit
94c126029d
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue