Skip to content

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

fix(web_chat): export event_belongs_to and correct saas gateway test

Steven Enamakel47f4a5ad54ce
diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rs
index 0d85abf472..d5b5c03d90 100644
--- a/crates/openhuman-core/src/web_chat/mod.rs
+++ b/crates/openhuman-core/src/web_chat/mod.rs
@@ -60,8 +60,8 @@ pub use egress_surface::register_egress_surface_subscriber;
pub use event_bus::{
approval_request_event, plan_review_request_event, publish_web_channel_event,
register_agent_surface_subscriber, register_approval_surface_subscriber,
- register_artifact_surface_subscriber, register_memory_activity_surface_subscriber,
- subscribe_web_channel_events,
+ event_belongs_to, register_artifact_surface_subscriber,
+ register_memory_activity_surface_subscriber, subscribe_web_channel_events,
};
pub use progress_bridge::unix_epoch_ms;
diff --git a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs b/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
index d5e2e2e751..31baf06f3e 100644
--- a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway_tests.rs
@@ -5,7 +5,6 @@ fn single_user_surfaces_are_closed() {
for path in [
"/v1",
"/v1/chat/completions",
- "/events",
"/events/domain",
"/events/webhooks",
"/ws/dictation",
@@ -19,7 +18,9 @@ fn single_user_surfaces_are_closed() {
#[test]
fn the_gateway_surfaces_stay_open() {
- for path in ["/", "/health", "/schema", "/rpc", "/v1x", "/eventsource"] {
+ // `/events` itself is the per-user chat stream, gated on the user scope by
+ // the layer rather than closed by prefix.
+ for path in ["/", "/health", "/schema", "/rpc", "/v1x", "/eventsource", "/events"] {
assert!(!is_closed_in_saas(path), "{path}");
}
}