refactor: drop legacy session store keys

This commit is contained in:
Peter Steinberger
2026-01-17 06:48:34 +00:00
parent 353d778988
commit 37a2eee837
22 changed files with 65 additions and 93 deletions

View File

@@ -136,11 +136,7 @@ function loadRequesterSessionEntry(requesterSessionKey: string) {
const agentId = resolveAgentIdFromSessionKey(canonicalKey);
const storePath = resolveStorePath(cfg.session?.store, { agentId });
const store = loadSessionStore(storePath);
const legacyKey = canonicalKey.startsWith("agent:")
? canonicalKey.split(":").slice(2).join(":")
: undefined;
const entry =
store[canonicalKey] ?? store[requesterSessionKey] ?? (legacyKey ? store[legacyKey] : undefined);
const entry = store[canonicalKey];
return { cfg, entry, canonicalKey };
}