Skip to content

v2.5.0: OpenClaw deep integration — flush fix + boot command + index sync

Choose a tag to compare

@ZackO2o ZackO2o released this 09 Apr 19:32
· 7 commits to main since this release

Critical Fix

  • memory-flush prompt: Removed instructions to write MEMORY.md (OpenClaw marks it read-only during flush) and run exec commands (restricted during flush). Previous prompt would fail silently, wasting tokens every compaction cycle.

New Features

  • memory-boot.js: Single-command session startup — runs health check, updates index, outputs MEMORY.md content. Saves 2 tool calls per session.
  • postIndexSync: "async": OpenClaw auto-syncs memory search index after compaction.
  • Cron stale detection: Compares file hashes against index, auto-rebuilds when out of sync (catches memory-flush writes that bypass autoReindex).

Based on OpenClaw Source Analysis

  • Studied thread-bindings-SYAnWHuW.js (memory-flush, compaction-safeguard, heartbeat logic)
  • Confirmed: flush tool writes restricted to memory/YYYY-MM-DD.md via wrapToolMemoryFlushAppendOnlyWrite
  • Confirmed: MEMORY.md, SOUL.md, AGENTS.md marked read-only via MEMORY_FLUSH_READ_ONLY_HINT
  • Confirmed: postIndexSync triggers runPostCompactionSessionMemorySync after compaction