Skip to content

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

fix(runtime): pass dispatch context to credential-gated service startup

Steven Enamakelcbfe834b3eeb
diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rs
index fd01969a5f..6cb9ebe0de 100644
--- a/crates/openhuman-core/src/core/runtime/services.rs
+++ b/crates/openhuman-core/src/core/runtime/services.rs
@@ -174,8 +174,11 @@ pub fn spawn_login_gated_services(embedded_core: bool) -> tokio::task::JoinHandl
if already_logged_in {
// User has an active session — start all services now.
log::info!("[services] existing session found, starting services");
- crate::security::credentials::ops::start_credential_gated_services(&config)
- .await;
+ crate::security::credentials::ops::start_credential_gated_services(
+ &crate::core::runtime::DispatchCtx::host_default(),
+ &config,
+ )
+ .await;
} else {
log::info!(
"[services] no active session — deferring service startup until login"