Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(openhuman-embed): keep admission guard alive during completion

Steven Enamakela5aadbfe357d
diff --git a/crates/openhuman-embed/src/agent/mcp_cleanup.rs b/crates/openhuman-embed/src/agent/mcp_cleanup.rs
index ef6a09483f..8fb0244e1e 100644
--- a/crates/openhuman-embed/src/agent/mcp_cleanup.rs
+++ b/crates/openhuman-embed/src/agent/mcp_cleanup.rs
@@ -95,7 +95,7 @@ fn complete_with_guard<T>(
) -> T {
// Releasing the last guard permits a new runtime with another agent map
// to reopen this workspace. Keep admission reserved through the callback.
- let _guard = guard.take();
+ let _guard = guard.as_ref();
complete()
}