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
chore: apply rustfmt and refresh lockfile
Steven Enamakel891559158884
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lockindex 0374e8521d..f1d8ac8812 100644--- a/crates/openhuman-app/Cargo.lock+++ b/crates/openhuman-app/Cargo.lock@@ -7919,7 +7919,7 @@ dependencies = [[[package]]name = "tinydocs-bus"-version = "0.2.5"+version = "0.2.6"dependencies = ["serde","thiserror 2.0.20",@@ -7997,19 +7997,6 @@ dependencies = ["url",]-[[package]]-name = "tinyinference-decisions"-version = "0.5.0"-dependencies = [- "async-trait",- "httpdate",- "reqwest 0.12.28",- "serde",- "serde_json",- "thiserror 2.0.20",- "tokio",-]-[[package]]name = "tinyinference-embeddings"version = "0.5.0"diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rsindex 4785c6cf09..287179aa9f 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs@@ -118,7 +118,9 @@ impl OpenHumanPersistence {// The generic driver may run in a detached Tokio task. Storage reads// before execution and commits after execution must use the actor the// authenticated parent carried, even outside the executor's scope.- if let Some(core) = crate::core::runtime::DispatchCtx::from_weak(self.core.as_ref()).resolved() {+ if let Some(core) =+ crate::core::runtime::DispatchCtx::from_weak(self.core.as_ref()).resolved()+ {crate::core::runtime::CoreContext::sync_scope(core, open)} else if crate::core::runtime::is_saas() {Err(SubagentError::Persistence(diff --git a/crates/openhuman-core/src/mcp/server/tools/params.rs b/crates/openhuman-core/src/mcp/server/tools/params.rsindex ab6370da89..4fc0bbb460 100644--- a/crates/openhuman-core/src/mcp/server/tools/params.rs+++ b/crates/openhuman-core/src/mcp/server/tools/params.rs@@ -224,8 +224,8 @@ async fn validate_tool_arguments(log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;- let client = crate::mcp::module_client::McpConfiguredClient::for_config(&config)- .map_err(|error| {+ let client =+ crate::mcp::module_client::McpConfiguredClient::for_config(&config).map_err(|error| {log::warn!("[mcp][params] argument validation unavailable: {error:?}");ToolCallError::Internal("MCP argument validation is unavailable".into())})?;diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex 6b9e86da2c..c9ed484371 100644--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@ -10,8 +10,7 @@ struct AmbientStorage {impl AmbientStorage {fn install() -> Self {- let fixture =- crate::storage::test_support::sqlite_backend().expect("SQLite test backend");+ let fixture = crate::storage::test_support::sqlite_backend().expect("SQLite test backend");let guard = crate::storage::test_support::install_for_test(&fixture.url,std::sync::Arc::clone(&fixture.backend),diff --git a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rsindex caede353ee..2b7dc40865 100644--- a/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_stream_tests.rs@@ -31,9 +31,7 @@ async fn a_blob_over_the_bus_frame_round_trips_through_a_peer_bound_stream() {let rig = rig("tinyjuice").await;// 20 MiB: over the 16 MiB frame no inline call could carry.let len = 20 * MIB;- let stored = rig- .member("StreamPut", ("juice/ccr/streamed", len))- .await;+ let stored = rig.member("StreamPut", ("juice/ccr/streamed", len)).await;assert_eq!(stored["ok"]["len"], len, "{stored}");// It is in the module's own scope, byte for byte.let handle = rig.backend.for_scope(&rig.scope("tinyjuice")).unwrap();@@ -91,9 +89,7 @@ async fn a_streamed_blob_is_still_bound_by_the_grant_and_the_length() {"{denied_get}");// The module keeps working after a refusal.- let after = rig- .member("StreamPut", ("juice/ccr/after", 3 * MIB))- .await;+ let after = rig.member("StreamPut", ("juice/ccr/after", 3 * MIB)).await;assert_eq!(after["ok"]["len"], 3 * MIB, "{after}");}@@ -123,9 +119,7 @@ async fn an_inline_blob_no_frame_can_carry_fails_fast_instead_of_hanging() {.await.unwrap().is_none());- let after: Value = rig- .member("PutBlob", ("juice/ccr/after", 2048usize))- .await;+ let after: Value = rig.member("PutBlob", ("juice/ccr/after", 2048usize)).await;assert!(after.get("ok").is_some(),"the module keeps working: {after}"@@ -247,10 +241,7 @@ async fn a_second_module_cannot_read_or_take_the_first_modules_streams() {.peer_proxy(0, "Blobs").call("PutStream",- (- json!({"key": "juice/ccr/hijacked", "len": MIB}),- reference,- ),+ (json!({"key": "juice/ccr/hijacked", "len": MIB}), reference),).await;assert!(diff --git a/crates/openhuman-core/src/tools/impl/network/host.rs b/crates/openhuman-core/src/tools/impl/network/host.rsindex 0422f21ebb..99beb8f97e 100644--- a/crates/openhuman-core/src/tools/impl/network/host.rs+++ b/crates/openhuman-core/src/tools/impl/network/host.rs@@ -55,9 +55,12 @@ impl AsyncHtmlExtractor for TinyJuiceHtml {}async fn to_markdown(&self, html: &str) -> anyhow::Result<String> {- crate::inference::tokenjuice::extract_html(&DispatchCtx::from_weak(self.core.as_ref()), html.to_string())- .await- .map_err(anyhow::Error::msg)+ crate::inference::tokenjuice::extract_html(+ &DispatchCtx::from_weak(self.core.as_ref()),+ html.to_string(),+ )+ .await+ .map_err(anyhow::Error::msg)}}@@ -247,7 +250,9 @@ pub fn web_fetch_tool(max_bytes,timeout_secs,http_limits(),- Arc::new(TinyJuiceHtml { core: ctx.downgrade() }),+ Arc::new(TinyJuiceHtml {+ core: ctx.downgrade(),+ }),)// Opts into a caller-steered summary; see `tokenjuice::focus`..with_schema_property(SUMMARY_FOCUS_ARG, summary_focus_property())diff --git a/crates/openhuman-rpc/src/server/socketio_tests.rs b/crates/openhuman-rpc/src/server/socketio_tests.rsindex 1179bef4f8..082b12a647 100644--- a/crates/openhuman-rpc/src/server/socketio_tests.rs+++ b/crates/openhuman-rpc/src/server/socketio_tests.rs@@ -314,11 +314,9 @@ async fn handshake_bearer_gate() {let (layer, _io) = super::attach_socketio();// The serving router stamps every request with its dispatch context; the// connect handler refuses a socket that arrives without one.- let app = axum::Router::new()- .layer(layer)- .layer(axum::Extension(- crate::core_host::core::runtime::DispatchCtx::host_default(),- ));+ let app = axum::Router::new().layer(layer).layer(axum::Extension(+ crate::core_host::core::runtime::DispatchCtx::host_default(),+ ));let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();let base = format!("http://{}", listener.local_addr().unwrap());tokio::spawn(async move { axum::serve(listener, app).await.unwrap() });diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex e653f25394..d0972ad6b1 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -5420,7 +5420,23 @@ async fn cancelling_a_running_background_subagent_settles_it_inner() {).await;- tokio::time::sleep(Duration::from_secs(5)).await; eprintln!("DBG {}", with_captured(|c| serde_json::to_string(&c.iter().map(|r| r.pointer("/body/messages").cloned()).collect::<Vec<_>>()).unwrap().chars().rev().take(3000).collect::<String>().chars().rev().collect::<String>()));+ tokio::time::sleep(Duration::from_secs(5)).await;+ eprintln!(+ "DBG {}",+ with_captured(|c| serde_json::to_string(+ &c.iter()+ .map(|r| r.pointer("/body/messages").cloned())+ .collect::<Vec<_>>()+ )+ .unwrap()+ .chars()+ .rev()+ .take(3000)+ .collect::<String>()+ .chars()+ .rev()+ .collect::<String>())+ );let spawned = wait_for_event(&mut events, "subagent_spawned", Duration::from_secs(120)).await;let task_id = spawned.get("skill_id")