Skip to content

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

chore(web_chat): register event_bus_channel module and drop unused imports

Steven Enamakelae318fa4d604
diff --git a/crates/openhuman-core/src/web_chat/event_bus.rs b/crates/openhuman-core/src/web_chat/event_bus.rs
index 94fb407a5d..86e0da7726 100644
--- a/crates/openhuman-core/src/web_chat/event_bus.rs
+++ b/crates/openhuman-core/src/web_chat/event_bus.rs
@@ -3,9 +3,7 @@
//! domain events onto it for Socket.IO and the JSON-RPC `/events` stream.
use async_trait::async_trait;
-use once_cell::sync::Lazy;
use std::sync::{Arc, OnceLock};
-use tokio::sync::broadcast;
use crate::core::events::DomainEvent;
use crate::web_chat::WebChannelEvent;
diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rs
index ddc8671e51..5f575a6c7c 100644
--- a/crates/openhuman-core/src/web_chat/mod.rs
+++ b/crates/openhuman-core/src/web_chat/mod.rs
@@ -29,6 +29,7 @@
mod channel_event;
mod egress_surface;
mod event_bus;
+mod event_bus_channel;
mod journal_shadow;
mod ops;
// Response delivery/segmentation for the web surface (folded in from the former
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 65282ab984..81efd7e981 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -35,7 +35,7 @@ const LEGACY_LIMIT_ENTRIES = [
["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 974],
["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1241],
["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1045],
- ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1206],
+ ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1173],
// These established external test modules grew with upstream coverage. Pin
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its