Skip to content

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

Rust

test(run): preserve Pi blank environment coverage

Éverton Toffanetto1fc6cf7f228e
diff --git a/crates/ai-memory-cli/src/commands/run.rs b/crates/ai-memory-cli/src/commands/run.rs
index c1cfb539..1b67d515 100644
--- a/crates/ai-memory-cli/src/commands/run.rs
+++ b/crates/ai-memory-cli/src/commands/run.rs
@@ -3354,6 +3354,16 @@ mod tests {
.is_empty(),
"only the launched harness's own variables"
);
+ assert_eq!(
+ blank_home_overrides(
+ ManagedHarness::Pi,
+ &env(&[
+ ("PI_CODING_AGENT_SESSION_DIR", ""),
+ ("PI_CODING_AGENT_DIR", "/x")
+ ])
+ ),
+ ["PI_CODING_AGENT_SESSION_DIR"]
+ );
assert_eq!(
blank_home_overrides(
ManagedHarness::Omp,