Skip to content

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

test(transcript_search): pass ambient dispatch ctx in e2e tests

Steven Enamakel0479696e8fab
diff --git a/tests/in_process/transcript_search_e2e.rs b/tests/in_process/transcript_search_e2e.rs
index 00394b4156..fcedc11d25 100644
--- a/tests/in_process/transcript_search_e2e.rs
+++ b/tests/in_process/transcript_search_e2e.rs
@@ -48,7 +48,7 @@ fn message(id: &str, sender: &str, content: &str, created_at: &str) -> Conversat
/// Seed two threads of realistic prior chat into a fresh workspace and return
/// the store + a kept-alive tempdir guard pair. The caller holds `env_lock()`.
fn seed_workspace(workspace: &Path) -> ConversationStore {
- let store = ConversationStore::new(workspace.to_path_buf());
+ let store = ConversationStore::new(crate::core::runtime::DispatchCtx::ambient(), workspace.to_path_buf());
// Thread A — a past conversation about a Postgres migration.
store
@@ -110,7 +110,7 @@ async fn transcript_search_op_finds_message_in_prior_thread() {
let _ws = EnvVarGuard::set_to_path("OPENHUMAN_WORKSPACE", &workspace);
seed_workspace(&workspace);
- let hits = transcript_search("Postgres migration script", 10, None)
+ let hits = transcript_search(crate::core::runtime::DispatchCtx::ambient(), "Postgres migration script", 10, None)
.await
.expect("transcript_search op");
@@ -141,7 +141,7 @@ async fn transcript_search_op_honours_exclude_thread() {
let _ws = EnvVarGuard::set_to_path("OPENHUMAN_WORKSPACE", &workspace);
seed_workspace(&workspace);
- let hits = transcript_search("migration", 10, Some("thread-pg"))
+ let hits = transcript_search(crate::core::runtime::DispatchCtx::ambient(), "migration", 10, Some("thread-pg"))
.await
.expect("transcript_search op");
@@ -162,7 +162,7 @@ async fn transcript_search_op_returns_empty_on_no_match() {
let _ws = EnvVarGuard::set_to_path("OPENHUMAN_WORKSPACE", &workspace);
seed_workspace(&workspace);
- let hits = transcript_search("quantum chromodynamics zzz", 10, None)
+ let hits = transcript_search(crate::core::runtime::DispatchCtx::ambient(), "quantum chromodynamics zzz", 10, None)
.await
.expect("transcript_search op");