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(inference): pass ambient dispatch ctx to origin tests
Steven Enamakeldcc326708a5e
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs b/crates/openhuman-core/src/inference/host_runtime/ops_tests.rsindex d2d17c5331..8406593311 100644--- a/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs+++ b/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs@@ -264,7 +264,7 @@ fn grant_turn_cwd_is_the_only_mutation() {#[tokio::test]async fn effective_origin_defaults_to_direct_chat_outside_any_scope() {use crate::agent::turn_origin::AgentTurnOrigin;- let origin = effective_agent_chat_origin();+ let origin = effective_agent_chat_origin(&crate::core::runtime::DispatchCtx::ambient());assert!(matches!(origin, AgentTurnOrigin::DirectChat),"unscoped agent_chat must be labelled DirectChat, got {origin:?}"@@ -288,7 +288,7 @@ async fn effective_origin_keeps_an_embedder_scoped_label() {require_approval: false,},},- async { effective_agent_chat_origin() },+ async { effective_agent_chat_origin(&crate::core::runtime::DispatchCtx::ambient()) },).await;assert!(matches!(