mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:34:32 +00:00
fix: reset cache-ttl pruning window
This commit is contained in:
@@ -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 };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user