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
style: cargo fmt on main (after #7250)
Steven Enamakel2437253ea03d
diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rsindex 1fafdf6f0d..307e15bf19 100644--- a/crates/openhuman-core/src/channels/bus/subscriber.rs+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs@@ -67,7 +67,9 @@ impl EventHandler<DomainEvent> for ChannelInboundSubscriber {// If that contract is broken, the legacy channel-only key would let// different users share one chat session and its prepared wallet quote.if channel.split(':').next() == Some("discord")- && sender.as_deref().is_none_or(|value| value.trim().is_empty())+ && sender+ .as_deref()+ .is_none_or(|value| value.trim().is_empty()){tracing::warn!("[channel-inbound] dropping Discord message without sender id");return;diff --git a/crates/openhuman-embed/examples/profiles.rs b/crates/openhuman-embed/examples/profiles.rsindex bcdd7d68d6..dfd1ecc2e5 100644--- a/crates/openhuman-embed/examples/profiles.rs+++ b/crates/openhuman-embed/examples/profiles.rs@@ -80,7 +80,10 @@ async fn run() -> anyhow::Result<()> {.await?;let handle = profiles.open(user).await?;let reply = handle.chat("t1", said).await?;- println!("\n[{user}] sent message to t1; got reply ({} bytes)", reply.text.len());+ println!(+ "\n[{user}] sent message to t1; got reply ({} bytes)",+ reply.text.len()+ );handles.push((user, handle));}diff --git a/crates/openhuman-embed/src/profiles.rs b/crates/openhuman-embed/src/profiles.rsindex 6b5a881a2e..7c9d9c2ad9 100644--- a/crates/openhuman-embed/src/profiles.rs+++ b/crates/openhuman-embed/src/profiles.rs@@ -356,7 +356,10 @@ fn ensure_service_token(path: &Path) -> Result<(), ProfileError> {// This ensures that if the write is interrupted, the target path is left in its original state.let parent = path.parent().unwrap_or_else(|| Path::new("."));let mut temp_path = parent.to_path_buf();- temp_path.push(format!(".service-token-tmp-{}", uuid::Uuid::new_v4().simple()));+ temp_path.push(format!(+ ".service-token-tmp-{}",+ uuid::Uuid::new_v4().simple()+ ));{let mut options = std::fs::OpenOptions::new();diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rsindex 7cf4f2939e..5735e5ba51 100644--- a/crates/openhuman-embed/tests/common/mod.rs+++ b/crates/openhuman-embed/tests/common/mod.rs@@ -246,12 +246,9 @@ impl openhuman_embed::BackendTransport for PointedTransport {) -> Result<serde_json::Value, openhuman_embed::BackendTransportError> {// Forward inference requests to the pointed mock endpoint.// This uses the same HTTP client as a real transport would.- let url = format!(- "{}/{}",- self.base_url,- req.path.trim_start_matches('/')- );- let resp = self.client+ let url = format!("{}/{}", self.base_url, req.path.trim_start_matches('/'));+ let resp = self+ .client.post(&url).json(&req.body).send()