Skip to content

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

fix(credentials): resume channel service after setting credential

Steven Enamakel9eba4360a730
diff --git a/crates/openhuman-core/src/security/credentials/ops/credential.rs b/crates/openhuman-core/src/security/credentials/ops/credential.rs
index 13fff43a22..67a8f3c3a9 100644
--- a/crates/openhuman-core/src/security/credentials/ops/credential.rs
+++ b/crates/openhuman-core/src/security/credentials/ops/credential.rs
@@ -212,6 +212,8 @@ pub async fn set_credential(
spawn_integrations_cache_warm(config);
}
crate::cron::scheduler_gate::set_signed_out(false);
+ #[cfg(feature = "channels")]
+ crate::channels::session::resume_channel_service();
tracing::info!(
domain = "credentials",
operation = "set_credential",
@@ -341,6 +343,8 @@ pub async fn set_credential(
// Open the scheduler gate now that a live credential is in place; workers
// sleeping in the paused poll loop resume at their next iteration.
crate::cron::scheduler_gate::set_signed_out(false);
+ #[cfg(feature = "channels")]
+ crate::channels::session::resume_channel_service();
// An API key wins over a session for every backend request. Keep the
// process identity aligned with that effective credential.
if api_key::has_api_key(&effective_config) {