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: files changed crates/openhuman-core/src/agent/subagent_host/ops/runner.rs,crates/openhuman-co
Steven Enamakel8d6cadde4ada
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 7c040ca0c9..24c6d82ed9 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -281,9 +281,7 @@ pub(crate) async fn run_subagent_direct(// Loaded once per spawn (see `LoadedConfig`), after the tier gate so a// rejected spawn never initialises config on first run.- let loaded_config: LoadedConfig = Box::pin(crate::config::ops::load_current_or_init(- &crate::core::runtime::DispatchCtx::ambient(),- ))+ let loaded_config: LoadedConfig = Box::pin(crate::config::ops::load_current_or_init()).await.map(std::sync::Arc::new).map_err(|e| e.to_string());diff --git a/crates/openhuman-core/src/config/ops/loader/load.rs b/crates/openhuman-core/src/config/ops/loader/load.rsindex aa4dd07f10..30c7f4c2d6 100644--- a/crates/openhuman-core/src/config/ops/loader/load.rs+++ b/crates/openhuman-core/src/config/ops/loader/load.rs@@ -100,6 +100,12 @@ pub async fn load_current_or_init(ctx: &DispatchCtx) -> anyhow::Result<Config> {Ok(config)}+/// [`load_current_or_init`] for a caller with no context of its own yet: reads+/// the task's ambient one. Transitional (#7801), like `DispatchCtx::ambient`.+pub async fn load_current_or_init_ambient() -> anyhow::Result<Config> {+ load_current_or_init(&crate::core::runtime::DispatchCtx::ambient()).await+}+/// Loads the config that belongs to `workspace_dir`, rather than whichever one/// the process-global active-user / `OPENHUMAN_WORKSPACE` resolution currently/// selects.