fix(sqlite): bound WAL sidecar growth

This commit is contained in:
Peter Steinberger
2026-04-27 12:25:02 +01:00
parent bbfdb38e4e
commit 3bc29dd604
16 changed files with 234 additions and 14 deletions

View File

@@ -78,6 +78,8 @@ OpenClaw indexes `MEMORY.md` and `memory/*.md` into chunks (~400 tokens with
80-token overlap) and stores them in a per-agent SQLite database.
- **Index location:** `~/.openclaw/memory/<agentId>.sqlite`
- **Storage maintenance:** SQLite WAL sidecars are bounded with periodic and
shutdown checkpoints.
- **File watching:** changes to memory files trigger a debounced reindex (1.5s).
- **Auto-reindex:** when the embedding provider, model, or chunking config
changes, the entire index is rebuilt automatically.