Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(store): serialize warning capture
AkitaOnRails98ad37f2cc94
diff --git a/crates/ai-memory-store/src/ops.rs b/crates/ai-memory-store/src/ops.rsindex cd6f70c1..0438610c 100644--- a/crates/ai-memory-store/src/ops.rs+++ b/crates/ai-memory-store/src/ops.rs@@ -1772,6 +1772,8 @@ mod tests {struct CapturedLogWriter(Arc<Mutex<Vec<u8>>>);+ static WARNING_CAPTURE_LOCK: Mutex<()> = Mutex::new(());+impl Write for CapturedLogWriter {fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {self.0.lock().unwrap().extend_from_slice(buf);@@ -1792,6 +1794,7 @@ mod tests {}fn capture_warnings(run: impl FnOnce()) -> String {+ let _guard = WARNING_CAPTURE_LOCK.lock().unwrap();let logs = CapturedLogs::default();let subscriber = tracing_subscriber::fmt().with_max_level(tracing::Level::WARN)