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: reflow long expressions to satisfy line width
Steven Enamakelb21556a2edbc
diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rsindex 307e15bf19..1fafdf6f0d 100644--- a/crates/openhuman-core/src/channels/bus/subscriber.rs+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs@@ -67,9 +67,7 @@ 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 dfd1ecc2e5..bcdd7d68d6 100644--- a/crates/openhuman-embed/examples/profiles.rs+++ b/crates/openhuman-embed/examples/profiles.rs@@ -80,10 +80,7 @@ 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 7c9d9c2ad9..6b5a881a2e 100644--- a/crates/openhuman-embed/src/profiles.rs+++ b/crates/openhuman-embed/src/profiles.rs@@ -356,10 +356,7 @@ 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 5735e5ba51..7cf4f2939e 100644--- a/crates/openhuman-embed/tests/common/mod.rs+++ b/crates/openhuman-embed/tests/common/mod.rs@@ -246,9 +246,12 @@ 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()