summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.ts
diff options
context:
space:
mode:
authorjerop <[email protected]>2025-06-11 04:46:39 +0000
committerJerop Kipruto <[email protected]>2025-06-11 01:18:40 -0400
commitd1e23b7c71e6a0e1c7d920e147ec15a0dbbf689c (patch)
tree80242ba70949c1e8b982ee1c827147ff387ea7b5 /packages/cli/src/ui/hooks/slashCommandProcessor.ts
parent95fdc66e7d719eae731c1afd61103f94f7fe3131 (diff)
refactor: Centralize session ID generation and propagation
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index 4d677f1e..69fb6d06 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -493,7 +493,7 @@ Add any other context about the problem here.
description: 'save conversation checkpoint. Usage: /save [tag]',
action: async (_mainCommand, subCommand, _args) => {
const tag = (subCommand || '').trim();
- const logger = new Logger();
+ const logger = new Logger(config?.getSessionId() || '');
await logger.initialize();
const chat = await config?.getGeminiClient()?.getChat();
const history = chat?.getHistory() || [];
@@ -519,7 +519,7 @@ Add any other context about the problem here.
'resume from conversation checkpoint. Usage: /resume [tag]',
action: async (_mainCommand, subCommand, _args) => {
const tag = (subCommand || '').trim();
- const logger = new Logger();
+ const logger = new Logger(config?.getSessionId() || '');
await logger.initialize();
const conversation = await logger.loadCheckpoint(tag);
if (conversation.length === 0) {