The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(agent): assert retry guard is retained after failed completion
Steven Enamakelf9a2b81866c7
diff --git a/crates/openhuman-embed/src/agent/mcp_cleanup_tests.rs b/crates/openhuman-embed/src/agent/mcp_cleanup_tests.rsindex ba096aa523..d053e3139a 100644--- a/crates/openhuman-embed/src/agent/mcp_cleanup_tests.rs+++ b/crates/openhuman-embed/src/agent/mcp_cleanup_tests.rs@@ -93,13 +93,15 @@ fn the_last_runtime_guard_keeps_admission_reserved_through_cleanup_completion()entered_tx.send(()).unwrap();release_rx.recv().unwrap();});+ guard.is_some()});entered_rx.recv().unwrap();let guard_is_live = weak.upgrade().is_some();let admission_is_reserved =crate::runtime::RUNTIME_LIVE.load(std::sync::atomic::Ordering::Acquire);release_tx.send(()).unwrap();- worker.join().unwrap();+ let retry_guard_is_retained = worker.join().unwrap();+ assert!(retry_guard_is_retained, "a failed completion may retry and must retain runtime admission until the task ends");assert!(guard_is_live,"completion must retain the last real workspace/runtime guard"