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
Merge remote-tracking branch 'upstream/main' into tinywallet-release-0192
Steven Enamakelda95d7fd6332
diff --cc crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex bc0bf0f418,785d7651b6..dcaf64a65f--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@@ -446,7 -446,9 +446,11 @@@ fn render_connected_mcp_servers() -> Stuse crate::mcp::registry::connections;let servers = match tokio::runtime::Handle::try_current() {Ok(handle) if handle.runtime_flavor() == tokio::runtime::RuntimeFlavor::MultiThread => {- tokio::task::block_in_place(|| handle.block_on(connections::connected_overview()))- tokio::task::block_in_place(|| handle.block_on(connections::connected_overview(- &crate::core::runtime::DispatchCtx::ambient(),- )))++ tokio::task::block_in_place(|| {++ handle.block_on(connections::connected_overview(++ &crate::core::runtime::DispatchCtx::ambient(),++ ))++ })}_ => Vec::new(),};diff --cc crates/openhuman-core/src/agent/session_host/prelude_integrations.rsindex 85d56ee0a7,746d449827..ee1de3e39b--- a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs+++ b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs@@@ -383,11 -384,11 +383,12 @@@ impl OpenHumanTurnPreludeconnected.len(),self.agent_definition_id);- let mcp_servers = crate::mcp::registry::connections::connected_overview()- let mcp_servers = crate::mcp::registry::connections::connected_overview(&self.dispatch_ctx())-- .await-- .into_iter()-- .map(|server| server.qualified_name)-- .collect::<std::collections::HashSet<_>>();++ let mcp_servers =++ crate::mcp::registry::connections::connected_overview(&self.dispatch_ctx())++ .await++ .into_iter()++ .map(|server| server.qualified_name)++ .collect::<std::collections::HashSet<_>>();let mut mutable = self.mutable.lock()@@@ -426,11 -427,11 +427,12 @@@mutable.connected_integrations_authoritative = authoritative;}}- let connected_mcp = crate::mcp::registry::connections::connected_overview()- let connected_mcp = crate::mcp::registry::connections::connected_overview(&self.dispatch_ctx())-- .await-- .into_iter()-- .map(|server| server.qualified_name)-- .collect::<Vec<_>>();++ let connected_mcp =++ crate::mcp::registry::connections::connected_overview(&self.dispatch_ctx())++ .await++ .into_iter()++ .map(|server| server.qualified_name)++ .collect::<Vec<_>>();let mut mutable = self.mutable.lock()diff --cc crates/openhuman-core/src/channels/runtime/startup/delivery_import.rsindex 0161797d63,46ac3d4d1d..11ba680c27--- a/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs@@@ -68,8 -68,8 +68,11 @@@ pub(super) async fn import_legacy_delivlet Some(backend) = crate::storage::installed() else {return Ok(Outcome::NoBackend);};- let scope = crate::modules::storage_host::current_module_scope(MODULE_ID)- let scope = crate::modules::storage_host::current_module_scope(&crate::core::runtime::DispatchCtx::ambient(), MODULE_ID)-- .map_err(|error| anyhow::anyhow!("resolve the module scope: {:?}", error.kind()))?;++ let scope = crate::modules::storage_host::current_module_scope(++ &crate::core::runtime::DispatchCtx::ambient(),++ MODULE_ID,++ )++ .map_err(|error| anyhow::anyhow!("resolve the module scope: {:?}", error.kind()))?;let scoped = backend.for_scope(&scope).map_err(|error| anyhow::anyhow!("open the module scope: {:?}", error.kind()))?;diff --cc crates/openhuman-core/src/mcp/registry/mod.rsindex a4fd84b54e,8b87611977..e52561b7fe--- a/crates/openhuman-core/src/mcp/registry/mod.rs+++ b/crates/openhuman-core/src/mcp/registry/mod.rs@@@ -92,8 -92,8 +92,10 @@@ pub mod connections////// Sorted by qualified name, so a prompt built from this does not reshuffle/// between turns and cost its cached prefix.- pub async fn connected_overview() -> Vec<ConnectedServerOverview> {- let Some(config) = host::ambient_config() else {- pub async fn connected_overview(ctx: &crate::core::runtime::DispatchCtx) -> Vec<ConnectedServerOverview> {++ pub async fn connected_overview(++ ctx: &crate::core::runtime::DispatchCtx,++ ) -> Vec<ConnectedServerOverview> {+ let Some(config) = host::ambient_config(ctx) else {return Vec::new();};connected_overview_for_config(&config).awaitdiff --cc crates/openhuman-core/src/modules/mod.rsindex c68471d981,3b6aebf22a..b7d02a328b--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@@ -237,7 -237,7 +237,10 @@@ wherF: std::future::Future<Output = anyhow::Result<T>>,T: std::fmt::Debug + Settled,{- let scope = match storage_host::current_module_scope(module_id) {- let scope = match storage_host::current_module_scope(&crate::core::runtime::DispatchCtx::ambient(), module_id) {++ let scope = match storage_host::current_module_scope(++ &crate::core::runtime::DispatchCtx::ambient(),++ module_id,++ ) {Ok(scope) => format!("{scope:?}"),Err(error) => {log::warn!("[{kind}] legacy storage import skipped: {:?}", error.kind());@@@ -327,7 -327,7 +330,13 @@@ pub(crate) fn expiring_blob_module_scop{[storage_grant_tinyjuice::MODULE_ID].into_iter()- .filter_map(|id| storage_host::current_module_scope(id).ok())- .filter_map(|id| storage_host::current_module_scope(&crate::core::runtime::DispatchCtx::ambient(), id).ok())++ .filter_map(|id| {++ storage_host::current_module_scope(++ &crate::core::runtime::DispatchCtx::ambient(),++ id,++ )++ .ok()++ }).collect()}// Without the loader no module holds blobs.diff --cc crates/openhuman-core/src/modules/storage_import_support.rsindex 83875a200b,c4b55dc8f3..be5631cde0--- a/crates/openhuman-core/src/modules/storage_import_support.rs+++ b/crates/openhuman-core/src/modules/storage_import_support.rs@@@ -20,8 -20,8 +20,11 @@@ pub(super) fn module_scope(module_id: &let Some(backend) = crate::storage::installed() else {return Ok(None);};- let scope = super::storage_host::current_module_scope(module_id)- let scope = super::storage_host::current_module_scope(&crate::core::runtime::DispatchCtx::ambient(), module_id)-- .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;++ let scope = super::storage_host::current_module_scope(++ &crate::core::runtime::DispatchCtx::ambient(),++ module_id,++ )++ .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;let scoped = backend.for_scope(&scope).map_err(|error| anyhow!("open the module scope: {:?}", error.kind()))?;diff --cc crates/openhuman-core/src/modules/storage_import_tinymcp.rsindex b7c36bf1e3,db517d7bdf..91e340273a--- a/crates/openhuman-core/src/modules/storage_import_tinymcp.rs+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp.rs@@@ -73,8 -73,8 +73,11 @@@ pub(crate) async fn import_legacy(data_let Some(backend) = crate::storage::installed() else {return Ok(Outcome::NoBackend);};- let scope = super::storage_host::current_module_scope(MODULE_ID)- let scope = super::storage_host::current_module_scope(&crate::core::runtime::DispatchCtx::ambient(), MODULE_ID)-- .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;++ let scope = super::storage_host::current_module_scope(++ &crate::core::runtime::DispatchCtx::ambient(),++ MODULE_ID,++ )++ .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;let scoped = backend.for_scope(&scope).map_err(|error| anyhow!("open the module scope: {:?}", error.kind()))?;diff --cc crates/openhuman-core/src/security/approval/gate_forced_tests.rsindex 68f2646f75,b90f6764aa..fc38a6870d--- a/crates/openhuman-core/src/security/approval/gate_forced_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_forced_tests.rs@@@ -130,7 -130,7 +130,12 @@@ async fn forced_approval_still_denies_a#[test]fn saas_outcome_is_absent_outside_saas() {- assert!(saas_outcome_with(false, "shell").is_none());- assert!(saas_outcome_with(&crate::core::runtime::DispatchCtx::ambient(), false, "shell").is_none());++ assert!(saas_outcome_with(++ &crate::core::runtime::DispatchCtx::ambient(),++ false,++ "shell"++ )++ .is_none());}#[test]