summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useLogger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/hooks/useLogger.ts')
-rw-r--r--packages/cli/src/ui/hooks/useLogger.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useLogger.ts b/packages/cli/src/ui/hooks/useLogger.ts
index ea6227ce..ea6d6057 100644
--- a/packages/cli/src/ui/hooks/useLogger.ts
+++ b/packages/cli/src/ui/hooks/useLogger.ts
@@ -5,6 +5,7 @@
*/
import { useState, useEffect } from 'react';
+import { sessionId } from '@gemini-cli/core';
import { Logger } from '@gemini-cli/core';
/**
@@ -14,7 +15,7 @@ export const useLogger = () => {
const [logger, setLogger] = useState<Logger | null>(null);
useEffect(() => {
- const newLogger = new Logger();
+ const newLogger = new Logger(sessionId);
/**
* Start async initialization, no need to await. Using await slows down the
* time from launch to see the gemini-cli prompt and it's better to not save