fix: sessions label lookup and persistence (#570) (thanks @azade-c)

This commit is contained in:
Peter Steinberger
2026-01-09 14:01:49 +01:00
parent e24e0cf364
commit 56e77f6843
7 changed files with 123 additions and 69 deletions

View File

@@ -880,7 +880,7 @@ export async function handleDirectiveOnly(params: {
}
}
sessionEntry.updatedAt = Date.now();
sessionStore[sessionKey] = { ...sessionStore[sessionKey], ...sessionEntry };
sessionStore[sessionKey] = sessionEntry;
if (storePath) {
await saveSessionStore(storePath, sessionStore);
}
@@ -1099,7 +1099,7 @@ export async function persistInlineDirectives(params: {
}
if (updated) {
sessionEntry.updatedAt = Date.now();
sessionStore[sessionKey] = { ...sessionStore[sessionKey], ...sessionEntry };
sessionStore[sessionKey] = sessionEntry;
if (storePath) {
await saveSessionStore(storePath, sessionStore);
}