Improve compaction hooks: add signal, no timeout, SessionManager cleanup, docs

This commit is contained in:
Mario Zechner 2025-12-24 13:54:05 +01:00
parent a2664ba38a
commit 705ba5d4f2
19 changed files with 1236 additions and 207 deletions

View file

@ -496,7 +496,7 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
};
// Check if session has existing data to restore
const existingSession = sessionManager.loadSession();
const existingSession = sessionManager.buildSessionContext();
time("loadSession");
const hasExistingSession = existingSession.messages.length > 0;