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
fix(core): drop DispatchCtx leftovers that fail clippy -D warnings
M3gA-Mind31cbe822c42e
diff --git a/crates/openhuman-core/src/integrations/task_sources/route.rs b/crates/openhuman-core/src/integrations/task_sources/route.rsindex 11e031c79b..9d874fc08f 100644--- a/crates/openhuman-core/src/integrations/task_sources/route.rs+++ b/crates/openhuman-core/src/integrations/task_sources/route.rs@@ -81,7 +81,7 @@ async fn dispatch_triage(payload,);- let outcome = run_triage(&ctx, &envelope)+ let outcome = run_triage(ctx, &envelope).await.map_err(|e| format!("[task_sources:route] triage evaluation failed: {e}"))?;@@ -90,7 +90,7 @@ async fn dispatch_triage(// Remote payload: the task arrived from an external board, so the// dispatch parks rather than running on a trust root (#5634).let origin = remote_trigger_origin(&envelope);- with_origin(origin, apply_decision(&ctx, run, &envelope))+ with_origin(origin, apply_decision(ctx, run, &envelope)).await.map_err(|e| format!("[task_sources:route] apply_decision failed: {e}"))?;tracing::debug!(diff --git a/crates/openhuman-core/src/voice/live/schemas.rs b/crates/openhuman-core/src/voice/live/schemas.rsindex 97462cea10..385ff181cc 100644--- a/crates/openhuman-core/src/voice/live/schemas.rs+++ b/crates/openhuman-core/src/voice/live/schemas.rs@@ -9,7 +9,6 @@ use serde_json::{Map, Value};use super::ops;use super::types::LiveSettingsPatch;-use crate::config::rpc as config_rpc;use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, TypeSchema};diff --git a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rsindex ae473b96a3..41bca07ded 100644--- a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs+++ b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs@@ -3,7 +3,6 @@use crate::core::runtime::DispatchCtx;use serde_json::{Map, Value};-use crate::config::rpc as config_rpc;use crate::core::all::ControllerFuture;use crate::voice::schemas::helpers::{diff --git a/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs b/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rsindex c1ca672363..25fe0b048b 100644--- a/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs+++ b/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs@@ -3,7 +3,6 @@use crate::core::runtime::DispatchCtx;use serde_json::{Map, Value};-use crate::config::rpc as config_rpc;use crate::core::all::ControllerFuture;use crate::voice::schemas::helpers::{diff --git a/crates/openhuman-core/src/web3/bridge/schemas.rs b/crates/openhuman-core/src/web3/bridge/schemas.rsindex c42df30431..e8b7af0cb9 100644--- a/crates/openhuman-core/src/web3/bridge/schemas.rs+++ b/crates/openhuman-core/src/web3/bridge/schemas.rs@@ -8,7 +8,6 @@ use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, Outcome, TypeSchema};use super::super::{execute_inputs, json_result, opt_str, req_json};-use crate::config::rpc as config_rpc;use crate::modules::web3_service;use tinywallet_bus::names::methods;diff --git a/crates/openhuman-core/src/web3/dapp/schemas.rs b/crates/openhuman-core/src/web3/dapp/schemas.rsindex 6367292526..762bba3441 100644--- a/crates/openhuman-core/src/web3/dapp/schemas.rs+++ b/crates/openhuman-core/src/web3/dapp/schemas.rs@@ -8,7 +8,6 @@ use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, Outcome, TypeSchema};use super::super::{execute_inputs, json_result, opt_str, req_json};-use crate::config::rpc as config_rpc;use crate::modules::web3_service;use tinywallet_bus::names::methods;diff --git a/crates/openhuman-core/src/web3/swap/schemas.rs b/crates/openhuman-core/src/web3/swap/schemas.rsindex 4f079578a4..96745c5e12 100644--- a/crates/openhuman-core/src/web3/swap/schemas.rs+++ b/crates/openhuman-core/src/web3/swap/schemas.rs@@ -9,7 +9,6 @@ use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, Outcome, TypeSchema};use super::super::{execute_inputs, json_result, opt_str, req_json};-use crate::config::rpc as config_rpc;use crate::modules::web3_service;use tinywallet_bus::names::methods;diff --git a/crates/openhuman-core/src/web3/wallet/execution.rs b/crates/openhuman-core/src/web3/wallet/execution.rsindex 62362d7dfe..d897f11d1d 100644--- a/crates/openhuman-core/src/web3/wallet/execution.rs+++ b/crates/openhuman-core/src/web3/wallet/execution.rs@@ -2,7 +2,6 @@//! This host supplies configuration, custody, transport and approvals; wallet//! algorithms and user-scoped service state remain in the compiled module.-use crate::config::rpc as config_rpc;use crate::core::runtime::DispatchCtx;use crate::core::Outcome;use crate::modules::{wallet as wallet_module, wallet_service};diff --git a/crates/openhuman-core/src/web3/wallet/ops.rs b/crates/openhuman-core/src/web3/wallet/ops.rsindex 07a11871d6..06efd62f4c 100644--- a/crates/openhuman-core/src/web3/wallet/ops.rs+++ b/crates/openhuman-core/src/web3/wallet/ops.rs@@ -18,7 +18,6 @@ pub use types::{use log::debug;-use crate::config::rpc as config_rpc;use crate::core::Outcome;use tinywallet_bus::wire::SecretMaterial;use tinywallet_bus::Chain as ModuleChain;diff --git a/crates/openhuman-core/src/web3/wallet/tools.rs b/crates/openhuman-core/src/web3/wallet/tools.rsindex da64512e26..ed7e0a856e 100644--- a/crates/openhuman-core/src/web3/wallet/tools.rs+++ b/crates/openhuman-core/src/web3/wallet/tools.rs@@ -82,8 +82,8 @@ impl WalletModuleTool {chat: Option<&crate::security::approval::ApprovalChatContext>,) -> anyhow::Result<ToolResult> {let result = match self.name() {- "wallet_status" => outcome_value(crate::web3::wallet::status(&ctx).await),- "wallet_chain_status" => outcome_value(crate::web3::wallet::chain_status(&ctx).await),+ "wallet_status" => outcome_value(crate::web3::wallet::status(ctx).await),+ "wallet_chain_status" => outcome_value(crate::web3::wallet::chain_status(ctx).await),"wallet_prepare_transfer" => {let params = match serde_json::from_value(args) {Ok(params) => params,@@ -110,7 +110,7 @@ impl WalletModuleTool {let result = match self.name() {"wallet_tx_status" => outcome_value(crate::web3::wallet::tx_status(- &ctx,+ ctx,query.chain,query.evm_network,&query.hash,@@ -119,7 +119,7 @@ impl WalletModuleTool {),"wallet_tx_receipt" => outcome_value(crate::web3::wallet::tx_receipt(- &ctx,+ ctx,query.chain,query.evm_network,&query.hash,@@ -128,7 +128,7 @@ impl WalletModuleTool {),_ => outcome_value(crate::web3::wallet::lookup_tx(- &ctx,+ ctx,query.chain,query.evm_network,&query.hash,diff --git a/crates/openhuman-embed/tests/flow_approvals.rs b/crates/openhuman-embed/tests/flow_approvals.rsindex e0e57ec8d9..603ec386e9 100644--- a/crates/openhuman-embed/tests/flow_approvals.rs+++ b/crates/openhuman-embed/tests/flow_approvals.rs@@ -92,20 +92,17 @@ fn flow_surfaces_correlate_decisions_and_closed_instances_never_publish() {let park = tokio::spawn(CoreContext::scope(context,turn_origin::with_origin(origin("flow-live"), async move {- async move {- let turn = ApprovalTurnContext::default()- .with_flow_run(run_context("flow-live", "run-direct"));- parking_gate- .intercept_audited_for_call(- &turn,- "shell",- "flow action",- serde_json::json!({"command": "redacted"}),- Some("flow-call"),- )- .await- }- .await+ let turn = ApprovalTurnContext::default()+ .with_flow_run(run_context("flow-live", "run-direct"));+ parking_gate+ .intercept_audited_for_call(+ &turn,+ "shell",+ "flow action",+ serde_json::json!({"command": "redacted"}),+ Some("flow-call"),+ )+ .await}),));let request_id = tokio::time::timeout(Duration::from_secs(5), async {