v0.13.4
Bug Fixes
-
fix: flush vault notes on unload to prevent last-message loss (#190) — The per-event vault saves on
donewere fire-and-forget and could be orphaned before completing. Added an explicit vault flush inonunload()so vault notes are always consistent with data.json at clean shutdown. Prevents the last agent response from being missing after a plugin update clears data.json and crash recovery falls back to stale vault notes. -
fix: prevent closed threads from resurrecting on reload (#189) — Two related races:
closeThreadwas not awaiting the vault save (so a quick restart could resurrect a closed thread), and the orphan-archive scan ran after crash recovery instead of before (so stalestatus: waitingvault notes got loaded as active threads before they could be cleaned up). Both are now fixed.