Skip to content

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

Rust

test(wrapper): pin container fixtures to script hooks

AkitaOnRailsa1255e348615
diff --git a/crates/ai-memory-cli/tests/suite/packaging.rs b/crates/ai-memory-cli/tests/suite/packaging.rs
index 2101888d..773da066 100644
--- a/crates/ai-memory-cli/tests/suite/packaging.rs
+++ b/crates/ai-memory-cli/tests/suite/packaging.rs
@@ -89,6 +89,10 @@ fn run_wrapper_on_fake_macos(args: &[&str]) -> String {
.args(args)
.env("PATH", path)
.env("AI_MEMORY_DOCKER", shell_path(&docker))
+ // This helper asserts container argv. `install-hooks` defaults to the
+ // native host client now; opt into the documented script fallback so
+ // that subcommand still exercises the container-routing contract.
+ .env("AI_MEMORY_HOOK_PLATFORM", "posix")
.env("AI_MEMORY_NO_VERSION_CHECK", "1")
.env("AI_MEMORY_DATA_VOLUME", "test-ai-memory-data")
.env("HOME", shell_path(tmp.path()))
@@ -1010,6 +1014,10 @@ fn run_wrapper_with_fake_docker_env(
.args(args)
.env("PATH", path)
.env("AI_MEMORY_DOCKER", shell_path(&docker))
+ // Callers test Docker/Podman UID, SELinux, and env forwarding. Keep
+ // `install-hooks` on that explicit compatibility path; native hook
+ // routing has separate regression coverage below.
+ .env("AI_MEMORY_HOOK_PLATFORM", "posix")
.env("AI_MEMORY_NO_VERSION_CHECK", "1")
.env("AI_MEMORY_DATA_VOLUME", "test-ai-memory-data")
.env("HOME", shell_path(tmp.path()))