Docs: link cron run-log config from sessions cleanup

This commit is contained in:
Gustavo Madeira Santana 2026-02-23 14:53:46 -05:00 committed by Shakker
parent 7cb8d5701e
commit 75e6696d9d
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ openclaw sessions cleanup --json
`openclaw sessions cleanup` uses `session.maintenance` settings from config:
- Scope note: `openclaw sessions cleanup` maintains session stores/transcripts only. It does not prune cron run logs (`cron/runs/<jobId>.jsonl`), which are managed by `cron.runLog.maxBytes` and `cron.runLog.keepLines` in [Cron configuration](/automation/cron-jobs#configuration) and explained in [Cron maintenance](/automation/cron-jobs#maintenance).
- `--dry-run`: preview how many entries would be pruned/capped without writing.
- In text mode, dry-run prints a per-session action table (`Action`, `Key`, `Age`, `Model`, `Flags`) so you can see what would be kept vs removed.
- `--enforce`: apply maintenance even when `session.maintenance.mode` is `warn`.