Skip to content

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

Rust

test: reproduce non-zero Codex recovery exit

Gabriel Scharb76cfc1b6aadd
diff --git a/crates/ai-memory-llm/src/codex.rs b/crates/ai-memory-llm/src/codex.rs
index 80d44386..fcb4be33 100644
--- a/crates/ai-memory-llm/src/codex.rs
+++ b/crates/ai-memory-llm/src/codex.rs
@@ -818,6 +818,7 @@ mod tests {
("oversized", "exceeded its limit"),
("stderr", "stderr exceeded its limit"),
("exit", "ended before replying"),
+ ("exit-nonzero", "ended before replying"),
] {
fs::write(dir.path().join("fake-mode"), mode).unwrap();
let error = recover_with_codex(&auth, Duration::from_secs(3))