fix(sessions): batch store cap maintenance

This commit is contained in:
Peter Steinberger
2026-04-27 14:51:48 +01:00
parent 0ac0357486
commit 877b5a14f1
8 changed files with 152 additions and 16 deletions

View File

@@ -118,6 +118,8 @@ to `"enforce"` for automatic cleanup:
}
```
For production-sized `maxEntries` limits, Gateway runtime writes use a small high-water buffer and clean back down to the configured cap in batches. This avoids running full store cleanup on every isolated cron session. `openclaw sessions cleanup --enforce` applies the cap immediately.
Preview with `openclaw sessions cleanup --dry-run`.
## Inspecting sessions