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