fix: route session cleanup through gateway writer

This commit is contained in:
Peter Steinberger
2026-05-02 12:50:01 +01:00
parent b4437047f4
commit 4967bcb16b
13 changed files with 363 additions and 118 deletions

View File

@@ -98,6 +98,10 @@ openclaw sessions cleanup --json
- `--store <path>`: run against a specific `sessions.json` file.
- `--json`: print a JSON summary. With `--all-agents`, output includes one summary per store.
When a Gateway is reachable, enforcing cleanup for configured agent stores is
sent through the Gateway so it shares the same session-store writer as runtime
traffic. Use `--store <path>` for explicit offline repair of a store file.
`openclaw sessions cleanup --all-agents --dry-run --json`:
```json