Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge main into fix/web-heading-anchor-ids
Akita On Rails6b205e81dad1
diff --cc CHANGELOG.mdindex 4d008d82,5ad75e16..fc646f44--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -46,42 -352,13 +352,17 @@@ and this project adheres to [Semantic V- Confined wiki reads, writes, indexing, recovery, and lifecycle cleanup to realproject-tree directories by refusing symbolic links and filesystem reparsepoints at namespace roots or descendants. (#1107)+- Fixed the web page view omitting heading IDs, preventing `#anchor` fragments+ and section wikilinks from scrolling to target headings. The Markdown renderer+ now emits unique, slugified `id` attributes on heading elements (`<h1>`–`<h6>`),+ disambiguating duplicate headings and stripping punctuation. (#1105)- - Fixed `memory_handoff_list` MCP tool calls being counted under writes in- `client_activity`: the read-only inspection tool is now classified as a read- in `tool_call_is_write`. (#1088)- - Fixed a store write sent while the writer was shutting down occasionally- waiting forever instead of failing with `WriterClosed`: the writer now- closes its queue and drains in-flight commands before it stops.- - Fixed `resume` and `workstreams` running `git status` on every linked checkout- before listing anything: listing now reads only the checkout's stable- fingerprints, so a large working tree or a slow filesystem-monitor hook no- longer blocks the picker before its first frame. (#1039)- - Fixed the generated OpenCode 2 plugin ending every tracked session when- OpenCode unloads it on idle-location eviction. Unload is not shutdown: the- host and its sessions stay alive, so each eviction froze a live session- (`SessionStart` cannot reopen an ended OpenCode session), fabricated a- spurious summary page and open handoff, and made the next baton fetch fail- with `invalid state: an ended session cannot accept a handoff`. Plugin- unload no longer posts `session-end`; deletion (`session.deleted`) remains- the end signal and a completed root turn already publishes its continuation- checkpoint and baton. Regenerate the plugin with- `ai-memory install-hooks --agent opencode2 --apply`. (#1074)- - Fixed watcher reindexing racing with writes and batches to the same page by- sharing their per-page mutex from disk read through SQLite upsert. Both- mutation guards are released before embedding; external editors remain- outside this coordination. (#1059)- - Fixed a managed Claude Code run losing its conversation after `/resume` on a- Claude Code background session. The run used to finish on the foreground- session it started with, which held none of the conversation, so the next- `ai-memory run claude` or `continue` resumed it and Claude opened an empty- session. A Claude run now finishes on the background session its own- session attached to in this checkout, found from that transcript's- `sessionKind: "bg"` records; another launch's background session is never- taken. (#1050)+ - Fixed a later hook event carrying a managed-run id linking its native session+ to that run without the checks SessionStart applies. It now links only from+ the run's own project and operator; an event from elsewhere is still captured+ but no longer repoints the run. (#1082)+ - Fixed completed retries and no-op session endings advancing+ `last_persisted_ms` without a durable write. Recovery still advances the+ timestamp when it commits a new page or terminal effect. (#1015)- Fixed interrupted launchers blocking an immediate managed-workstream restartby adding explicit `ai-memory run --force-unlock` recovery. The serveratomically expires and replaces only a lease attributed to the same