fix(compaction): avoid preserving duplicate user turns

This commit is contained in:
Peter Steinberger
2026-04-27 12:30:53 +01:00
parent dae09d26b9
commit 35335214b3
10 changed files with 273 additions and 2 deletions

View File

@@ -50,6 +50,9 @@ OpenClaw persists sessions in two layers:
- Append-only transcript with tree structure (entries have `id` + `parentId`)
- Stores the actual conversation + tool calls + compaction summaries
- Used to rebuild the model context for future turns
- Large pre-compaction debug checkpoints are skipped once the active
transcript exceeds the checkpoint size cap, avoiding a second giant
`.checkpoint.*.jsonl` copy.
---