Skip to content

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

test(memory): pass ambient dispatch context to learn action

Steven Enamakelc1dbdd76f203
diff --git a/tests/memory_v2_e2e.rs b/tests/memory_v2_e2e.rs
index e4309c5cf7..c59c796aa4 100644
--- a/tests/memory_v2_e2e.rs
+++ b/tests/memory_v2_e2e.rs
@@ -927,6 +927,7 @@ async fn the_agent_learn_returns_on_accept_and_recall_finds_it() {
// recall may lag.
let before = f.mock.request_rows().await.len();
let learned = openhuman_core::memory::tools::run_action(
+ &openhuman_core::core::runtime::DispatchCtx::ambient(),
&config,
&json!({"action": "learn", "text": "Dave takes his coffee with oat milk"}),
&facts,