Environment:
- OS: Windows 11 (via WSL2)
- WSL Distro: Ubuntu 24.04.1 LTS (Noble Numbat)
- WSL Kernel: 5.15.167.4-microsoft-standard-WSL2
- Node: v22.22.0
- OpenClaw: 2026.1.29
Config (relevant):
json
"compaction": {
"mode": "safeguard",
"reserveTokensFloor": 24000,
"memoryFlush": {
"enabled": true,
"softThresholdTokens": 6000,
"prompt": "<custom prompt to update memory files>",
"systemPrompt": "Session nearing compaction. Persist durable state now."
}
}
Workspace: Windows drive mounted via WSL (/mnt/d/...)
Observed behavior:
- Compaction occurred without memoryFlush prompt being sent to agent
- Workspace confirmed writable (777 permissions, write tests pass)
- Memory files exist with earlier state, but no flush prompt received before final compaction
Expected behavior:
- Agent should receive memoryFlush prompt when context reaches softThresholdTokens (6000 tokens remaining) before compaction summarizes context