fix: reset cache-ttl pruning window

This commit is contained in:
Peter Steinberger
2026-01-21 19:53:00 +00:00
parent 9f59ff325b
commit 9f999f6554
2 changed files with 72 additions and 1 deletions

View File

@@ -29,6 +29,11 @@ export default function contextPruningExtension(api: ExtensionAPI): void {
});
if (next === event.messages) return undefined;
if (runtime.settings.mode === "cache-ttl") {
runtime.lastCacheTouchAt = Date.now();
}
return { messages: next };
});
}