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(orchestration): parameterize background delivery test helpers
Steven Enamakel73fc2e45978f
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_recovery_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_recovery_tests.rsindex 556bf45f91..979b5e0997 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_recovery_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_recovery_tests.rs@@ -1,5 +1,8 @@use super::*;use crate::core::runtime::DispatchCtx;+use crate::agent::orchestration::background_completions::{+ forget_workspace_for_test, router_for_workspace,+};#[tokio::test]async fn an_unexpired_completion_claim_stays_leased_after_router_reopen() {diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rsindex 16386560cb..634faa09f5 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs@@ -3,20 +3,21 @@ use crate::agent::orchestration::background_completions::{pending_for, record_completion, TestWorkspace,};use std::path::Path;+use std::sync::{Arc, Mutex};use tokio::sync::MutexGuard;async fn test_guard() -> MutexGuard<'static, ()> {crate::config::TEST_ENV_LOCK.lock().await}-async fn record(ws: &Path, session: &str, task: &str, thread: &str) {+async fn record(ws: &Path, session: &str, task: &str, summary: &str, thread: &str) {record_completion(&DispatchCtx::ambient(),ws,session,task,"researcher",- "done",+ summary,Some(thread.to_owned()),).await;@@ -28,7 +29,7 @@ async fn try_deliver_applies_the_requested_turn_end_delay() {let workspace = TestWorkspace::new();let workspace_dir = workspace.path().to_path_buf();let thread_id = "thread-turn-end-delay";- record(&workspace_dir, "session-turn-end-delay", "sub-delay", thread_id).await;+ record(&workspace_dir, "session-turn-end-delay", "sub-delay", "done", thread_id).await;let ctx = DispatchCtx::ambient();let requested_delay = Duration::from_millis(300);let started = std::time::Instant::now();