Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge PR #984

AkitaOnRailsed91e1dfb481
diff --cc CHANGELOG.md
index 7bb5c7dc,1f2635c3..d4cb5542
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -8,31 -8,24 +8,49 @@@ and this project adheres to [Semantic V
## [Unreleased]
### Fixed
+- `install-hooks --apply --as-user <user> --auth-token <key>` no longer fails
+ with `--as-user '<user>' requires --auth-token` when the token was supplied.
+ The guard was handed the *rendered* credential, which is deliberately `None`
+ on the #552 secure path (the token is persisted under the data dir for the
+ hooks to read), so the recommended multi-user install command in
+ `docs/users.md` and `install-hooks --help` bailed on every native install
+ while reporting the token as absent. It now validates the resolved token.
+ `install-hooks` without `--as-user` was unaffected, and `--as-user` with no
+ token anywhere still bails. (#993)
+- Wiki link extraction and the wikilink export now follow CommonMark for code
+ fences and link destinations: a fence closes only on the same glyph and at
+ least the opening length (so a ```` ``` ```` line inside `~~~` or a four-tick
+ fence no longer ends it), and a backtick line whose info string holds a
+ backtick is text, not a fence that hides the rest of the page from the link
+ index. `[doc](notes/foo_(1).md)` keeps its balanced parentheses, `<...>`
+ destinations and trailing titles are parsed (a `)` or link inside a title is
+ no longer read as part of the link), and a destination scan is bounded so a
+ line of unclosed `[a](` cannot stall a page write. (#985)
+- `[[wikilinks]]` exported as Markdown links now write a `<...>` destination
+ whenever a bare one cannot hold the path (a space, a control character, or an
+ unbalanced parenthesis), so an exported bundle indexes back to the page it
+ was written from. A path that cannot be written either way keeps its
+ `[[wikilink]]`. (#985)
+- The `/web` reader resolves `[doc](./notes/foo.md)` to the page instead of a
+ `p/./notes/foo.md` route that 404s. (#985)
+ - `[routing] mid_session = "sticky"` was silently disabled for every
+ marker-covered install. `workspace` is a required `.ai-memory.toml` key, so
+ the host hook forwards `&workspace=…` on every event under any marker's
+ tree — including events that never left the session's own workspace — and
+ `overrides_permit_sticky` (`ai-memory-hooks::router`) disqualified
+ stickiness on that presence alone, before the project-provenance logic
+ (`project_src=repo-root` vs. `marker`) ever ran. A mid-session `cd` into a
+ sibling checkout therefore always rescoped under a marker, exactly as if
+ `sticky` were unset, while the identical scenario outside any marker's tree
+ (`workspace_override` naturally `None`) worked as documented — the entire
+ difference between the two cases this bug reports as "identical except for
+ being under `$HOME`". `find_session_scope` now runs before the sticky-permit
+ gate, and a `workspace_override` is resolved once against the session's own
+ workspace (`workspace_override_is_rescope`, via the existing no-create
+ `lookup_existing_workspace` — no new lookup mechanism): the SAME workspace
+ is not a rescope and falls through to the existing project-provenance logic
+ unchanged; a genuinely DIFFERENT or unresolvable workspace still fails
+ closed and disqualifies sticky, exactly as before. (#984)
## [2.4.2] - 2026-09-29