Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(agent): pass dispatch context to history section test

Steven Enamakel96cc9fe08ca0
diff --git a/crates/openhuman-core/src/agent/context_breakdown_tests.rs b/crates/openhuman-core/src/agent/context_breakdown_tests.rs
index eb000d37f6..bd56098035 100644
--- a/crates/openhuman-core/src/agent/context_breakdown_tests.rs
+++ b/crates/openhuman-core/src/agent/context_breakdown_tests.rs
@@ -90,7 +90,8 @@ async fn history_section_is_none_for_an_unknown_thread() {
// `has_usage: false` (or the RPC itself fails) and this must degrade to
// `None` rather than propagating an error — the breakdown must still
// answer with just the prompt/tools sections.
- let section = history_section("context-breakdown-unknown-thread-id", 0).await;
+ let ctx = DispatchCtx::process_default();
+ let section = history_section(&ctx, "context-breakdown-unknown-thread-id", 0).await;
assert!(section.is_none());
}
diff --git a/vendor/tinyagents b/vendor/tinyagents
index ef69312ce1..462395cfea 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit ef69312ce18d55f9aae17500f26528fe7b9d8573
+Subproject commit 462395cfea4445f1af53d83aa39ebece05840497