This commit is contained in:
Luna
2026-03-03 20:44:52 +01:00
parent 65de299320
commit 931f222979
4 changed files with 11 additions and 4 deletions

View File

@@ -379,7 +379,9 @@ export async function appendShortTerm(userId, role, content) {
Date.now(),
]);
enforceShortTermCap(db, userId);
await maybeSummarize(db, userId);
if (config.enableShortTermSummary) {
await maybeSummarize(db, userId);
}
await persistDb(db);
}