Skip to content

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

chore(web_chat): add presentation and session checkout tests

Steven Enamakel9235e80f6b7a
diff --git a/crates/openhuman-core/src/web_chat/presentation_tests.rs b/crates/openhuman-core/src/web_chat/presentation_tests.rs
index b3caadc7ac..8efe514365 100644
--- a/crates/openhuman-core/src/web_chat/presentation_tests.rs
+++ b/crates/openhuman-core/src/web_chat/presentation_tests.rs
@@ -9,7 +9,7 @@ fn single_bubble_delivery_emits_one_unsegmented_chat_done() {
Nothing needs input from you right now, so I have not rescheduled anything on your behalf.";
let request_id = format!("single-bubble-{}", uuid::Uuid::new_v4());
- deliver_response_single_bubble("system", "thread-1", &request_id, text, None);
+ deliver_response_single_bubble(&crate::core::runtime::DispatchCtx::ambient(), "system", "thread-1", &request_id, text, None);
// Other tests publish on the same process-global bus; keep only ours.
let mut mine = Vec::new();
diff --git a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
index 954eb7d685..602ef50bf0 100644
--- a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
@@ -16,6 +16,7 @@ use super::{
};
use crate::agent::OpenHumanSessionHost;
use crate::config::Config;
+use crate::core::runtime::DispatchCtx;
use crate::web_chat::ops::{key_for, thread_sessions};
use crate::web_chat::types::SessionCacheFingerprint;
use tinyagents_session::transcript::TranscriptMessage;