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 task recency window host extension
Steven Enamakelcd921ba3eb85
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 c502416e78..492b0f7531 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@@ -426,3 +426,26 @@ fn child_inherits_shared_model_budget_and_narrowed_depth_limit() {10);}++#[test]+fn task_recency_window_reaches_tools_as_a_host_extension_not_a_task_local() {+ let mut host = OpenHumanRunContext::new();+ host.task_recency_window = Some(Duration::from_secs(86_400));+ let run = host.into_tinyagents(tinyagents_harness::context::RunConfig::new("run-recency"));+ assert_eq!(+ run.host::<OpenHumanRunExt>()+ .and_then(|ext| ext.task_recency_window),+ Some(Duration::from_secs(86_400))+ );++ let unrestricted = OpenHumanRunContext::new()+ .into_tinyagents(tinyagents_harness::context::RunConfig::new("run-open"));+ assert_eq!(+ unrestricted+ .host::<OpenHumanRunExt>()+ .and_then(|ext| ext.task_recency_window),+ None+ );+ // Direct dispatch (no run context) is unrestricted.+ assert_eq!(task_recency_window_for_tool(None), None);+}