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/orchestration/background_completions_tenant_tes
Steven Enamakel18d1e33034e8
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rsindex 3be4492269..e6e6d902e9 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs@@ -22,17 +22,14 @@ fn profile(name: &str, workspace: &std::path::Path) -> Arc<CoreContext> {}async fn record(ctx: &Arc<CoreContext>, ws: &std::path::Path, task: &str) {- CoreContext::scope(- Arc::clone(ctx),- record_completion(- &DispatchCtx::new(Arc::clone(ctx)),- ws,- "sess-1",- task,- "researcher",- "done",- Some("t1".into()),- ),+ record_completion(+ &DispatchCtx::new(Arc::clone(ctx)),+ ws,+ "sess-1",+ task,+ "researcher",+ "done",+ Some("t1".into()),).await;}diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rsindex 30b3454e1d..4df3daa352 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs@@ -48,17 +48,14 @@ async fn pair() -> Pair {let thread = unique("t");let session = web_session(&thread);for (ctx, ws, task) in [(&alice, &ws_a, "task-alice"), (&bob, &ws_b, "task-bob")] {- CoreContext::scope(- Arc::clone(ctx),- record_completion(- &DispatchCtx::ambient(),- ws.path(),- &session,- task,- "researcher",- "done",- Some(thread.clone()),- ),+ record_completion(+ &DispatchCtx::new(Arc::clone(ctx)),+ ws.path(),+ &session,+ task,+ "researcher",+ "done",+ Some(thread.clone()),).await;}@@ -171,30 +168,24 @@ async fn a_delivery_in_flight_for_one_profile_does_not_take_anothers_slot() {let (thread, router_bob, bob_log) = (thread.clone(), router_bob.clone(), bob_log.clone());let alice_log = log("alice");async move {- let retry = CoreContext::scope(- bob,- try_deliver_with(- &DispatchCtx::ambient(),- thread,- router_bob,- bob_log,- |_t, _n| async { unreachable!("bob's delivery succeeds") },- ),+ let retry = try_deliver_with(+ &DispatchCtx::new(bob),+ thread,+ router_bob,+ bob_log,+ |_t, _n| async { unreachable!("bob's delivery succeeds") },).await;assert_eq!(retry, None);alice_log(thread_a, notice).await}};- let retry = CoreContext::scope(- Arc::clone(&p.alice),- try_deliver_with(- &DispatchCtx::ambient(),- p.thread.clone(),- router_a,- alice_deliver,- |_t, _n| async { unreachable!("alice's delivery succeeds") },- ),+ let retry = try_deliver_with(+ &DispatchCtx::new(Arc::clone(&p.alice)),+ p.thread.clone(),+ router_a,+ alice_deliver,+ |_t, _n| async { unreachable!("alice's delivery succeeds") },).await;assert_eq!(retry, None);diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rsindex aeb30e745b..c72e47df3c 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs@@ -69,17 +69,14 @@ async fn an_off_task_completion_drains_only_its_owners_thread() {let (task_a, task_b) = (unique("sub-a"), unique("sub-b"));for (ctx, ws, task) in [(&alice, &ws_a, &task_a), (&bob, &ws_b, &task_b)] {- CoreContext::scope(- Arc::clone(ctx),- record_completion(- &DispatchCtx::new(Arc::clone(ctx)),- ws.path(),- &session,- task.as_str(),- "r",- "done",- Some(thread.into()),- ),+ record_completion(+ &DispatchCtx::new(Arc::clone(ctx)),+ ws.path(),+ &session,+ task.as_str(),+ "r",+ "done",+ Some(thread.into()),).await;}