summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
-rw-r--r--packages/cli/src/ui/App.tsx10
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) => {