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
feat(modules): pin module client to its unique peer
Steven Enamakela23d47ceb98a
diff --git a/crates/openhuman-core/src/modules/client.rs b/crates/openhuman-core/src/modules/client.rsindex 4e33edb467..9ce2849042 100644--- a/crates/openhuman-core/src/modules/client.rs+++ b/crates/openhuman-core/src/modules/client.rs@@ -270,6 +270,24 @@ pub(crate) struct ModuleObjectClient {#[cfg(feature = "modules")]impl ModuleObjectClient {+ /// Capture the current unique peer before starting an owned lifecycle.+ /// Later alias replacement cannot redirect operations on this client.+ pub(crate) async fn pin_owner(&self) -> Result<Self, ModuleCallError> {+ let owner = self.proxy.connection().name_owner(self.proxy.destination()).await+ .map_err(|error| report_proxy_failure(self.record, &error))?+ .ok_or(ModuleCallError::Unavailable)?;+ let proxy = self.proxy.connection().proxy(owner.as_str(), self.proxy.path().as_str(), self.proxy.interface().as_str())+ .map_err(|error| report_proxy_failure(self.record, &error))?;+ Ok(Self { record: self.record, proxy })+ }++ /// Derive a private child on the already captured module peer.+ pub(crate) fn object_at(&self, path: &str) -> Result<Self, ModuleCallError> {+ let proxy = self.proxy.connection().proxy(self.proxy.destination().as_str(), path, self.proxy.interface().as_str())+ .map_err(|error| report_proxy_failure(self.record, &error))?;+ Ok(Self { record: self.record, proxy })+ }+pub(crate) async fn call<R: DeserializeOwned>(&self,member: &str,