fixes for summary prompt, chat route logger, QDrant orphan cleanup, llamacpp stream buffering

This commit is contained in:
Storme-bit
2026-08-16 06:05:33 -07:00
parent e4908193bd
commit 0248fcb58c
6 changed files with 76 additions and 22 deletions
@@ -62,6 +62,11 @@ function touchSession(id) {
function deleteSession(id) {
const db = getDB();
db.prepare(`DELETE FROM sessions WHERE id = ?`).run(id);
//SQLite cascade removed episode rows, clean up QDrant vectors too
// Fire-and-forget - payload-filter delete, so it doesn't depend on the rows existing
semantic.deleteEpisodesBySession(id)
.catch(err => logger.error(`[Memory] QDrant cleanup failed for session ${id}:`, err.message));
}
function updateSession(id, { name, projectId } = {}) {