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
refactor(core): simplify return expression in handle_computer_status
Steven Enamakel3bb0c51ebdd0
diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex c35a482538..57d8d56b5e 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -64,7 +64,6 @@ pub use types::{SubagentRunStatus, SubagentUsage,};-pub(crate) use ops::run_agent_turn_request_via_default_graph;pub(crate) use ops::{append_subagent_role_contract, resolve_subagent_source};// `user_is_signed_in_to_composio` is the mode-aware "can the user calldiff --git a/crates/openhuman-core/src/modules/schemas.rs b/crates/openhuman-core/src/modules/schemas.rsindex 61df5e4b64..622ee16c42 100644--- a/crates/openhuman-core/src/modules/schemas.rs+++ b/crates/openhuman-core/src/modules/schemas.rs@@ -201,10 +201,8 @@ fn handle_computer_status(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let load = params.get("load").and_then(Value::as_bool).unwrap_or(false);let config = config_rpc::load_config_with_timeout().await?;- Ok(- serde_json::to_value(super::computer::status(&config, load).await)- .map_err(|error| error.to_string())?,- )+ serde_json::to_value(super::computer::status(&config, load).await)+ .map_err(|error| error.to_string())})}