Skip to content

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

docs(channels): clarify proactive subscriber registration comments

Steven Enamakeladf72c64f2ff
diff --git a/crates/openhuman-core/src/channels/proactive.rs b/crates/openhuman-core/src/channels/proactive.rs
index 865b289606..c32d2438b4 100644
--- a/crates/openhuman-core/src/channels/proactive.rs
+++ b/crates/openhuman-core/src/channels/proactive.rs
@@ -38,10 +38,9 @@ fn proactive_approval_gate() -> Option<Arc<crate::security::approval::ApprovalGa
None
}
-/// Register a web-only proactive message subscriber on the global event
-/// bus. Guarded by `std::sync::Once` so it is safe to call from both
-/// `bootstrap_core_runtime` (desktop/JSON-RPC) and domain-level
-/// startup — only the first call takes effect.
+/// Register a web-only proactive message subscriber on the global event bus.
+/// Guarded by `std::sync::Once` so repeated core boot registration is safe.
+/// Calls before bus initialization are deferred and can be retried later.
pub fn register_web_only_proactive_subscriber() {
if crate::core::bus::BUS.get().is_none() {
tracing::warn!(
diff --git a/crates/openhuman-core/src/core/runtime/subscribers.rs b/crates/openhuman-core/src/core/runtime/subscribers.rs
index ca4b64d5e7..b9de73a2ce 100644
--- a/crates/openhuman-core/src/core/runtime/subscribers.rs
+++ b/crates/openhuman-core/src/core/runtime/subscribers.rs
@@ -30,7 +30,7 @@ pub struct DomainSubscriberPlan {
pub desktop: bool,
/// webhook request subscriber (skills own inbound webhook routing).
pub skills: bool,
- /// channel-inbound + web-only proactive.
+ /// channel-inbound dispatch.
pub channels: bool,
/// flows trigger dispatch.
pub flows: bool,
@@ -306,7 +306,7 @@ pub(super) fn register_domain_subscribers(
log::debug!("[event_bus] device-tunnel subscriber SKIPPED — Security domain disabled");
}
- // Channels: inbound dispatch + web-only proactive messaging.
+ // Channels: inbound dispatch.
// The `plan.channels` runtime guard cannot stand in for the compile-time
// gate: the `channels::bus::ChannelInboundSubscriber` +
// `channels::proactive` type paths below must still resolve for this to
@@ -327,12 +327,12 @@ pub(super) fn register_domain_subscribers(
}
} else {
log::debug!(
- "[event_bus] Channels subscribers (inbound + web-only proactive) SKIPPED — Channels domain disabled"
+ "[event_bus] channel-inbound subscriber SKIPPED — Channels domain disabled"
);
}
#[cfg(not(feature = "channels"))]
log::debug!(
- "[event_bus] Channels subscribers (inbound + web-only proactive) SKIPPED — channels feature disabled at compile time"
+ "[event_bus] channel-inbound subscriber SKIPPED — channels feature disabled at compile time"
);
// Flows trigger dispatch (issue B2): maps