mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
refactor: Centralize session ID generation and propagation
This commit is contained in:
parent
95fdc66e7d
commit
d1e23b7c71
20 changed files with 96 additions and 71 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue