Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
merge: sync main and preserve the Pi changelog entry
yoggsaron010-lang80ca6903538a
diff --cc CHANGELOG.mdindex 0c332923,e3539787..753ad88c--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -12,9 -12,70 +12,73 @@@ version in [`docs/changelog/`](docs/cha## [Unreleased]### Fixed+- Corrected Pi MCP setup guidance to name `ai-memory-pi.ts` and describe its+ location when `PI_CODING_AGENT_DIR` is set.+ ([#1446](https://github.com/akitaonrails/ai-memory/pull/1446))+ - Routed OpenCode's `claude-haiku-5-5` through the Anthropic Messages API for+ both Go and Zen instead of the unsupported Chat Completions protocol.+ ([#1470](https://github.com/akitaonrails/ai-memory/issues/1470))+ - Ignored a UTF-8 byte-order mark at the start of `run --env-file` input so+ the first environment variable keeps its intended name.+ ([#1465](https://github.com/akitaonrails/ai-memory/pull/1465))+ - Invoked GitHub Copilot CLI's native Windows lifecycle commands with+ PowerShell's call operator. Quoted `ai-memory.exe` paths now execute instead+ of producing a parser error that made fail-closed pre-tool hooks deny every+ tool call. ([#1462](https://github.com/akitaonrails/ai-memory/issues/1462))+ - Repaired the exact migration checksum recorded by v2.2.1 for the original+ V62 page-window migration before running strict migration validation. This+ removes the false divergence error on every upgraded-server start while+ keeping unknown migration edits fatal. CI now rejects changes to migration+ files already present on a PR's base branch.+ ([#1443](https://github.com/akitaonrails/ai-memory/issues/1443))+ - Sent `response_format=json_schema` for structured OpenCode Chat Completions+ calls, with the existing tolerant fallback for models that reject it, so+ `memory_query answer=true` no longer receives unstructured prose by default.+ ([#1441](https://github.com/akitaonrails/ai-memory/issues/1441))+ - Preserved third-party commands that share an event matcher group with an+ ai-memory hook when `install-hooks` reapplies or removes its own entry.+ ([#1453](https://github.com/akitaonrails/ai-memory/pull/1453))+ - Accepted a UTF-8 byte-order mark before imported page frontmatter in the+ wiki sync companion.+ ([#1452](https://github.com/akitaonrails/ai-memory/pull/1452))+ - Skipped H1-like comment lines inside fenced code when the importer derives+ page titles, including AgentMemory vault imports.+ ([#1451](https://github.com/akitaonrails/ai-memory/pull/1451))+ - Recognized importer frontmatter whose closing fence is the final line of a+ file without a trailing newline.+ ([#1450](https://github.com/akitaonrails/ai-memory/pull/1450))+ - Encoded spaces as `%20` instead of `+` in importer URL path segments,+ preserving workspace, project, and page names that contain spaces.+ ([#1449](https://github.com/akitaonrails/ai-memory/pull/1449))+ - Recognized exclamation-mark punctuation in short automatic-handoff+ acknowledgments such as `thanks!` and `perfect!`.+ ([#1448](https://github.com/akitaonrails/ai-memory/pull/1448))+ - Treated a blank `session_id` as omitted when starting an automatic+ improvement review, matching the other session-scoped MCP tools.+ ([#1447](https://github.com/akitaonrails/ai-memory/pull/1447))+ - Returned MCP `invalid_params` for caller-supplied invalid page paths, tiers,+ and scopes instead of misreporting them as internal server errors.+ ([#1445](https://github.com/akitaonrails/ai-memory/pull/1445))+ - Parsed an empty Markdown frontmatter block (`---` followed immediately by+ its closing fence) as frontmatter instead of folding it and later thematic+ breaks into the page body. ([#1444](https://github.com/akitaonrails/ai-memory/pull/1444))+ - Kept hook events whose JSON payload contains half of a UTF-16 surrogate pair+ as a `\u` escape, such as tool output cut in the middle of an emoji. Native,+ shell, PowerShell and direct hook clients now share the bounded server-side+ repair, replacing the unpaired escape with U+FFFD instead of dropping the+ whole event.+ ([#1432](https://github.com/akitaonrails/ai-memory/pull/1432))+ - Model-produced page paths are now cleaned of the remaining shapes `ensure_portable`+ refuses, a component ending in a dot or space and a DOS device name like `aux.md`,+ so one such path no longer aborts every page in a consolidation or bootstrap batch.+ ([#1430](https://github.com/akitaonrails/ai-memory/pull/1430))+ - Preserved FTS5 column filters inside parenthesized groups, so queries such+ as `(title:handoff)` no longer broaden into a search for the literal word+ `title` across every indexed field. ([#1442](https://github.com/akitaonrails/ai-memory/pull/1442))+ - Revalidated session-purge tombstones inside the reindex write transaction,+ preventing a queued watcher update from recreating a deleted summary after+ file cleanup failed. Kept surviving manual replacements at the same path+ editable through the watcher (#1439).- Added exact hover timestamps to `/web` page metadata, made the OKF upgradedialog keyboard accessible, and added a labelled main-navigation landmarkwith current-page state and narrow-screen wrapping.