Skip to content

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

fix(runtime): handle missing service gracefully on shutdown\n\nWhen a service is not registered in the runtime, attempting to shut it down now returns an error instead of panicking. This change improves robustness by allowing the runtime to continue operating even when a service reference is absent, which can occur during partial initialization or cleanup.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel3d076a02a098
diff --git a/src/core/runtime/services.rs b/src/core/runtime/services.rs
index 86b9ccbee0..69aa943e55 100644
--- a/src/core/runtime/services.rs
+++ b/src/core/runtime/services.rs
@@ -396,15 +396,6 @@ async fn run_legacy_migrations(config: &Config) {
}
}
-fn spawn_mcp_reconnect_supervisor(config: Config) {
- static SUPERVISOR_SPAWNED: Once = Once::new();
- SUPERVISOR_SPAWNED.call_once(|| {
- tokio::spawn(async move {
- crate::openhuman::mcp::registry::supervisor::run(config).await;
- });
- });
-}
-
/// Auto-connect Socket.IO to the backend when enabled by the service selection.
pub fn spawn_socket_auto_connect(
services: ServiceSet,