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 test-to-green-followup-8368
Steven Enamakel98e6f99581d7
diff --cc crates/openhuman-core/src/agent_runs/agent_chat/controllers.rsindex ad5280535d,1aa3c2de1a..9f877c2817--- a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs+++ b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs@@@ -142,7 -138,8 +142,8 @@@ fn handle_agent_chatSome(id) if !id.is_empty() => super::AgentChatTarget::AgentId(id),_ => super::AgentChatTarget::Orchestrator,};+ let headless = ctx.is_headless_agent_chat();- super::session_turn::agent_chat_reply_for_with_headless(+ let reply = super::session_turn::agent_chat_reply_for_with_headless(&mut config,target,¶ms.common.message,@@@ -160,18 -157,11 +161,18 @@@.with_provider_options(params.inference_provider_options).with_reasoning_effort(params.inference_reasoning_effort)}),- super::AgentChatEnv::default(),+ super::AgentChatEnv {+ host: crate::agent::turn_env::HostTurnEnv {+ core: core_lease.as_ref().map(std::sync::Arc::downgrade),+ ..Default::default()+ },+ ..Default::default()+ },- ctx.is_headless_agent_chat(),+ headless,)- .await?- .into_rpc_json()+ .await?;+ drop(core_lease);+ reply.into_rpc_json()})}diff --cc crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex 19feeb0b66,c9ed484371..9004d28af9--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@@ -82,10 -115,7 +116,11 @@@ async fn call_tool_validates_memory_argunsafe {std::env::set_var("OPENHUMAN_WORKSPACE", tmp.path());}+ let config = config_rpc::load_config_with_timeout()+ .await+ .expect("config");+ crate::mcp::test_module_port::install(&config);+ let _storage = AmbientStorage::install();let err = call_tool(&crate::core::runtime::DispatchCtx::ambient(),"memory.forget",diff --cc tests/agent_harness_e2e.rsindex c73b482c41,805a67d299..baefd8fdab--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@@ -5467,7 -5498,24 +5498,7 @@@ async fn cancelling_a_running_backgroun).await;- let spawned = wait_for_event(&mut events, "subagent_spawned", Duration::from_secs(15)).await;- tokio::time::sleep(Duration::from_secs(5)).await;- eprintln!(- "DBG {}",- with_captured(|c| serde_json::to_string(- &c.iter()- .map(|r| r.pointer("/body/messages").cloned())- .collect::<Vec<_>>()- )- .unwrap()- .chars()- .rev()- .take(3000)- .collect::<String>()- .chars()- .rev()- .collect::<String>())- );+ let spawned = wait_for_event(&mut events, "subagent_spawned", Duration::from_secs(120)).await;let task_id = spawned.get("skill_id").and_then(Value::as_str)diff --cc tests/saas_mode/delivery_recovery.rsindex 4b483a1d61,65101bf323..a6ef9fd1db--- a/tests/saas_mode/delivery_recovery.rs+++ b/tests/saas_mode/delivery_recovery.rs@@@ -121,11 -121,10 +121,11 @@@ fn seed_thread(node: &Node, user: &str/// completion queue.fn leave_undelivered_result(d: &Deployment, user: &str) {let id = ProfileId::for_user(user, ProfileIdMode::Raw).unwrap();- // The operator's storage backend, in the profile's own scope: the node- // installs the configured `storage_url` process-wide, so that is where the- // running core keeps (and looks for) every profile's completion queue.+ let workspace = ProfileLayout::new(&d.root, &id).workspace_dir;+ // SaaS nodes default to one deployment database with profile-scoped+ // collections; seed the same backend that ProfileHost reads on restart.- let url = format!("sqlite:{}", d.tmp.path().join("saas-storage.db").display());+ let url = format!("sqlite:{}/saas-storage.db", d.tmp.path().display());+ std::fs::create_dir_all(workspace.join(openhuman_core::storage::config::DEFAULT_DIR)).unwrap();let backend = openhuman_core::storage::block_on_anyhow(async move {Ok(openhuman_core::storage::open(&url).await?)})