Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(workstream): run the OMP XDG session tests only on unix
Éverton Toffanetto9b43e41f2063
diff --git a/crates/ai-memory-workstream/src/harness.rs b/crates/ai-memory-workstream/src/harness.rsindex c7ba5903..1e5beb39 100644--- a/crates/ai-memory-workstream/src/harness.rs+++ b/crates/ai-memory-workstream/src/harness.rs@@ -2394,6 +2394,7 @@ mod tests {/// OMP resolves `PI_CODING_AGENT_DIR` before deciding whether it moved the/// agent dir, so `..` or a relative spelling of the default still counts/// as the default location and keeps XDG sessions.+ #[cfg(unix)]#[test]fn omp_xdg_sessions_compare_the_resolved_agent_dir() {let exists = |path: &Path| path == Path::new("/xdg/omp");@@ -2447,6 +2448,7 @@ mod tests {/// On Linux and macOS, OMP moves sessions (only sessions) under/// `$XDG_DATA_HOME/omp` once that directory exists, unless/// `PI_CODING_AGENT_DIR` moved the agent dir away from its default.+ #[cfg(unix)]#[test]fn omp_sessions_dir_follows_xdg_data_home() {let home = Path::new("/home/me");