From d1e23b7c71e6a0e1c7d920e147ec15a0dbbf689c Mon Sep 17 00:00:00 2001
From: jerop <jerop@google.com>
Date: Wed, 11 Jun 2025 04:46:39 +0000
Subject: refactor: Centralize session ID generation and propagation

---
 packages/cli/src/gemini.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'packages/cli/src/gemini.tsx')

diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx
index f0044780..eb4f6bb6 100644
--- a/packages/cli/src/gemini.tsx
+++ b/packages/cli/src/gemini.tsx
@@ -31,6 +31,7 @@ import {
   WebFetchTool,
   WebSearchTool,
   WriteFileTool,
+  sessionId,
 } from '@gemini-cli/core';
 
 export async function main() {
@@ -57,6 +58,7 @@ export async function main() {
     settings.merged,
     extensions,
     geminiIgnorePatterns,
+    sessionId,
   );
 
   // Initialize centralized FileDiscoveryService
@@ -180,5 +182,6 @@ async function loadNonInteractiveConfig(
     nonInteractiveSettings,
     extensions,
     config.getGeminiIgnorePatterns(),
+    config.getSessionId(),
   );
 }
-- 
cgit v1.2.3

