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: add coverage for subagent host, shell jobs, accessibility, and tinyflows import
Steven Enamakelc2988f671a79
diff --git a/crates/openhuman-core/src/agent/subagent_host/types_tests.rs b/crates/openhuman-core/src/agent/subagent_host/types_tests.rsindex 65854fbf9f..cfbf9538a2 100644--- a/crates/openhuman-core/src/agent/subagent_host/types_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/types_tests.rs@@ -11,7 +11,7 @@ fn legacy_subagent_usage_keeps_its_wire_shape_and_does_not_claim_a_charge() {assert_eq!(usage.cost().usd(), None);assert_eq!(serde_json::to_value(usage).unwrap(), raw);usage.cost_source = crate::agent::cost::CostSource::Charged;- let charged = serde_json::to_value(&usage).unwrap();+ let charged = serde_json::to_value(usage).unwrap();assert_eq!(charged["cost_source"], "charged");assert_eq!(serde_json::from_value::<SubagentUsage>(charged)diff --git a/crates/openhuman-core/src/cron/scheduler/shell_job.rs b/crates/openhuman-core/src/cron/scheduler/shell_job.rsindex 238aa55490..142ba19e64 100644--- a/crates/openhuman-core/src/cron/scheduler/shell_job.rs+++ b/crates/openhuman-core/src/cron/scheduler/shell_job.rs@@ -186,7 +186,7 @@ pub(super) async fn run_job_command_with_timeout(Ok(child) => child,Err(_) => return (false, "Command execution is unavailable.".to_owned()),};- return match time::timeout(timeout, child.wait_with_output()).await {+ match time::timeout(timeout, child.wait_with_output()).await {Ok(Ok(output)) => {let stdout = String::from_utf8_lossy(&output.stdout);let stderr = String::from_utf8_lossy(&output.stderr);@@ -203,7 +203,7 @@ pub(super) async fn run_job_command_with_timeout(false,format!("job timed out after {}s", timeout.as_secs_f64()),),- };+ }}#[cfg(not(test))]diff --git a/crates/openhuman-core/src/modules/accessibility_tests.rs b/crates/openhuman-core/src/modules/accessibility_tests.rsindex dda0cab6c5..41cfedf29e 100644--- a/crates/openhuman-core/src/modules/accessibility_tests.rs+++ b/crates/openhuman-core/src/modules/accessibility_tests.rs@@ -232,7 +232,7 @@ async fn released_module_serves_permissions_and_confidential_target_validation().overrides.push(crate::config::schema::ModuleOverride::with_path("tinycomputer",- std::path::PathBuf::from(artifact).to_str().unwrap(),+ artifact.to_str().unwrap(),));let client = AccessibilityClient::new(&config);let permissions = client.permissions().await.expect("native permission query");diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rsindex 4885f42022..048147a4a2 100644--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs@@ -292,7 +292,7 @@ fn a_record_the_backend_already_holds_is_never_overwritten() {import_flows(&backend, &Scope::local(), &config).unwrap();let flow = {let catalog = catalog.clone();- crate::storage::block_on_anyhow(async move { Ok(catalog.get_flow("flow-alpha").await?) })+ crate::storage::block_on_anyhow(async move { catalog.get_flow("flow-alpha").await }).unwrap()};let mut changed = flow.expect("imported");