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
refactor(mcp): simplify reply cloning in module client
Steven Enamakele614ac2f1586
diff --git a/crates/openhuman-core/src/mcp/module_client.rs b/crates/openhuman-core/src/mcp/module_client.rsindex c7f98cb751..a598fa634d 100644--- a/crates/openhuman-core/src/mcp/module_client.rs+++ b/crates/openhuman-core/src/mcp/module_client.rs@@ -447,7 +447,7 @@ impl McpConfiguredClient {// call; retrying the same configuration recovers the// module's idempotent receipt after a cancelled caller.let reply = self.port.open_configured(&self.data_dir, &config).await;- state.open_replied(reply.as_ref().map(|ok| ok.clone()).map_err(|_| ()));+ state.open_replied(reply.clone().map_err(|_| ()));reply?;}Step::PollOpen(id) => {@@ -456,7 +456,7 @@ impl McpConfiguredClient {}Step::CallClose => {let reply = self.port.close(&self.data_dir).await;- state.close_replied(reply.as_ref().map(|ok| ok.clone()).map_err(|_| ()));+ state.close_replied(reply.clone().map_err(|_| ()));reply?;}Step::PollClose(id) => {