Skip to content

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

Rust

test: run the auth-default e2e on Unix only; macOS data dir in the setup sandbox

AkitaOnRailse864c0fc7ff1
diff --git a/crates/ai-memory-cli/tests/suite/auth_default_e2e.rs b/crates/ai-memory-cli/tests/suite/auth_default_e2e.rs
index f2e4c83d..c9807ce4 100644
--- a/crates/ai-memory-cli/tests/suite/auth_default_e2e.rs
+++ b/crates/ai-memory-cli/tests/suite/auth_default_e2e.rs
@@ -15,6 +15,11 @@
//! file, and it must behave exactly as before until `auth enable` opts it in.
/// Spawns servers: seconds, not milliseconds, so the slow tier.
+// Unix only: Windows resolves the harness app-data folders (Zed, OpenClaw)
+// through known-folder lookups that ignore the sandbox's HOME/USERPROFILE,
+// so these flows cannot run hermetically there. The unit tests cover the
+// Windows rendering paths.
+#[cfg(unix)]
mod slow {
use std::io::{BufRead as _, BufReader, Write as _};
use std::path::{Path, PathBuf};
diff --git a/crates/ai-memory-cli/tests/suite/setup_e2e.rs b/crates/ai-memory-cli/tests/suite/setup_e2e.rs
index 2ebb34a1..13f35c8b 100644
--- a/crates/ai-memory-cli/tests/suite/setup_e2e.rs
+++ b/crates/ai-memory-cli/tests/suite/setup_e2e.rs
@@ -36,8 +36,14 @@ impl Sandbox {
}
}
+ /// The default data dir `setup` resolves in this home: macOS uses
+ /// `~/Library/Application Support`, other Unix the XDG data dir.
fn data_dir(&self) -> PathBuf {
- self.home.join(".local/share/ai-memory")
+ if cfg!(target_os = "macos") {
+ self.home.join("Library/Application Support/ai-memory")
+ } else {
+ self.home.join(".local/share/ai-memory")
+ }
}
/// Every file under the home with its contents, the database and logs