Skip to content

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

Rust

docs: note repo-root hook resolution fix

AkitaOnRailsba883d38aa9b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e28ce124..a2d20459 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
delete-single-page surface for the first time.
### Fixed
+- OpenCode and OMP generated hooks now derive `project_strategy = "repo-root"`
+ project names from the host-visible `.ai-memory.toml` marker directory before
+ sending hook payloads, so dockerized servers no longer fall back to git
+ discovery inside paths they cannot see.
- `memory_delete_page` (MCP) now accepts `workspace` alongside `project` and
routes scope through `effective_ids_for_read_args`, the same path the read
tools use. Previously a project name that lived in multiple workspaces
diff --git a/crates/ai-memory-cli/src/commands/install_hooks.rs b/crates/ai-memory-cli/src/commands/install_hooks.rs
index f61fc7fe..3eee8352 100644
--- a/crates/ai-memory-cli/src/commands/install_hooks.rs
+++ b/crates/ai-memory-cli/src/commands/install_hooks.rs
@@ -2123,9 +2123,7 @@ model = "gpt-5"
!plugin.contains(r#""session.created": async"#),
"OpenCode bus events must be handled through the `event` hook"
);
- assert!(plugin.contains(
- "import { basename, dirname, join, resolve } from \"node:path\";"
- ));
+ assert!(plugin.contains("import { basename, dirname, join, resolve } from \"node:path\";"));
assert!(plugin.contains("basename(dirname(marker))"));
}
@@ -2175,9 +2173,9 @@ model = "gpt-5"
assert!(extension.contains("applyMarkerParams(url, cwd);"));
assert!(extension.contains("Bearer ${TOKEN}"));
assert!(extension.contains("tok"));
- assert!(extension.contains(
- "import { basename, dirname, join, resolve } from \"node:path\";"
- ));
+ assert!(
+ extension.contains("import { basename, dirname, join, resolve } from \"node:path\";")
+ );
assert!(extension.contains("basename(dirname(marker))"));
}