Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(setup): keep wizard stdout drained in setup_web plan e2e test
AkitaOnRailsf32a9c533418
diff --git a/crates/ai-memory-cli/tests/suite/setup_e2e.rs b/crates/ai-memory-cli/tests/suite/setup_e2e.rsindex b7817700..717b09fc 100644--- a/crates/ai-memory-cli/tests/suite/setup_e2e.rs+++ b/crates/ai-memory-cli/tests/suite/setup_e2e.rs@@ -366,14 +366,19 @@ fn setup_web_serves_the_plan_and_applies_the_picked_agent() {}let stdout = child.stdout.take().unwrap();let mut child = Kill(child);+ let mut lines = std::io::BufReader::new(stdout).lines();let mut url = String::new();- for line in std::io::BufReader::new(stdout).lines() {+ for line in lines.by_ref() {let line = line.unwrap();if let Some(found) = line.trim().strip_prefix("http://127.0.0.1:") {url = format!("http://127.0.0.1:{found}");break;}}+ // Keep the pipe open and drained after the readiness line. Dropping it+ // here races the child's following informational println!, whose+ // broken-pipe panic resets the listening socket before axum::serve starts.+ std::thread::spawn(move || for _ in lines {});assert!(url.ends_with('/'), "no address printed: {url:?}");let authority = url.trim_start_matches("http://")