Skip to content

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

fix(socketio): remove stale comment and add missing imports

Steven Enamakel0246827d9a72
diff --git a/crates/openhuman-rpc/src/server/socketio.rs b/crates/openhuman-rpc/src/server/socketio.rs
index fec8549f84..484314957c 100644
--- a/crates/openhuman-rpc/src/server/socketio.rs
+++ b/crates/openhuman-rpc/src/server/socketio.rs
@@ -33,18 +33,15 @@
use serde::Deserialize;
use serde::Serialize;
use serde_json::Value;
-// `json!` + socketioxide are used only by the socketioxide event-transport
-// bodies below, all gated with the `http-server` feature (#5048). The inert
-// event payload types further down (`WebChannelEvent`, `TurnUsagePayload`,
-// `SubagentUsagePayload`, `SubagentProgressDetail`) stay compiled in every build
-// — ~10 always-on domains (web_chat, cron, channels, agent, …)
-// construct them — so `serde` stays ungated and only the transport surface is
-// gated (type carve-out; see AGENTS.md and this module's `pub mod` in
-// `core::mod`, which is intentionally NOT gated).
use serde_json::json;
use socketioxide::extract::{AckSender, Data, SocketRef, TryData};
use socketioxide::SocketIo;
+use openhuman_core::web_chat::{
+ ChatSuggestion, GuardrailPayload, GuardrailReason, QueueItemPayload, SubagentProgressDetail,
+ SubagentUsagePayload, TurnTimingPayload, TurnUsagePayload, WebChannelEvent,
+};
+
/// Shell-originated companion lifecycle events that still need to reach
/// Socket.IO-only surfaces such as the native macOS notch WKWebView.
static COMPANION_STATE_BUS: once_cell::sync::Lazy<tokio::sync::broadcast::Sender<Value>> =