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: simplify lifecycle and config loading comments
Steven Enamakela847aad35abf
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex a754f99b07..949f842805 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -58,9 +58,7 @@ pub async fn run_subagent_with_parent(input: impl Into<String>,options: SubagentRunOptions,) -> Result<SubagentRunOutcome, SubagentRunError> {- // Boxed at every level of the host lifecycle: an unoptimised build keeps each- // awaited future inline in its caller's poll frame, so an unboxed chain- // multiplies the ~60 KB nested state machine per level (#6379).+ // Boxed so the nested lifecycle futures stay off this poll frame (#6379).Box::pin(OpenHumanSubagentHost::new(definition, options).run(parent, input.into())).await}@@ -75,13 +73,7 @@ pub async fn run_subagent(let mut root_data = root_context_from_options(&options);let root_config = root_data.root_run_config("subagent-host");let root = root_data.into_tinyagents(root_config);- Box::pin(run_subagent_with_parent(- &root,- definition.clone(),- input,- options,- ))- .await+ run_subagent_with_parent(&root, definition.clone(), input, options).await}/// Resume a durable lifecycle with its recovered original task key. The freshdiff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 3b5fe14532..7c90a11596 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -548,8 +548,7 @@ pub(crate) async fn run_subagent_direct(// Deliberately placed *after* `tier_gate_decision`: `load_or_init` can// initialize config on first run, and a spawn the tier gate rejects// should not have that side effect.- // Boxed: the load future is ~50 KB and an unoptimised build keeps every- // awaited future inline in this frame (#6379).+ // Boxed to keep the load future off this poll frame (#6379).let loaded_config: LoadedConfig = Box::pin(crate::config::Config::load_or_init()).await.map(std::sync::Arc::new)diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex f492c51636..e3e2013467 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -293,8 +293,7 @@ impl Config {let config_path = openhuman_dir.join("config.toml");if resolution_source == ConfigResolutionSource::DefaultConfigDir && !config_path.exists() {- let mut config =- pre_login_config_boxed(config_path.clone(), workspace_dir.clone(), env);+ let config = pre_login_config_boxed(config_path.clone(), workspace_dir.clone(), env);tracing::debug!(path = %config.config_path.display(),