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(tinyagents): cover detached child dispatch admission
Steven Enamakelbd3d51863b55
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rsindex 4dd7f3d9f8..67980f4d43 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs@@ -450,6 +450,18 @@ fn child_inherits_the_same_physical_dispatch_admission() {));}+#[test]+fn detached_child_does_not_inherit_parent_dispatch_admission() {+ let admission: Arc<dyn crate::agent::tinyagents::budget::PhysicalDispatchAdmission> =+ Arc::new(TestAdmission);+ let parent = OpenHumanRunContext {+ dispatch_admission: Some(admission),+ ..OpenHumanRunContext::new()+ };++ assert!(parent.detached_child().dispatch_admission.is_none());+}+struct TestAdmission;#[async_trait::async_trait]