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
test(flows): initialise the default core context in the builder chat e2e
M3gA-Mind3a3f7549eb17
diff --git a/tests/json_rpc_flows_builder_chat_e2e.rs b/tests/json_rpc_flows_builder_chat_e2e.rsindex 2fb43b1e9b..531e47d934 100644--- a/tests/json_rpc_flows_builder_chat_e2e.rs+++ b/tests/json_rpc_flows_builder_chat_e2e.rs@@ -392,6 +392,19 @@ async fn chat_spawns_workflow_builder_and_saves_its_proposal() {openhuman_core::core::bus::init().await.expect("initialise the in-process bus");+ // The boot also installs the process default context. Without it a call+ // has no resolved owner scope, and spawn_subagent cannot open the+ // sub-agent session store. CLI host shape (`openhuman-core serve`), with+ // the default tool groups (packed, as the desktop runs).+ openhuman_core::core::runtime::CoreContext::init_with_config(+ openhuman_core::core::types::HostKind::Cli,+ &openhuman_core::core::runtime::TokenSource::Fixed(Arc::new(TEST_RPC_TOKEN.to_string())),+ openhuman_core::core::runtime::DomainSet::full(),+ Default::default(),+ None,+ )+ .await+ .expect("initialise the process default core context");// The agent-side save writes a flow; approve exactly that tool.let mut approval_config = openhuman_core::config::Config {