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 the runtime service is not registered, the shutdown sequence now skips the service stop call instead of panicking. This prevents a crash in environments where optional services are conditionally loaded.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel7b73ee91c2de
diff --git a/src/core/runtime/services.rs b/src/core/runtime/services.rs
index 69aa943e55..cc540efb73 100644
--- a/src/core/runtime/services.rs
+++ b/src/core/runtime/services.rs
@@ -13,7 +13,6 @@
//! functions keep their config gates (is it enabled for this user).
// `to_arc` / the config accessors are `MemoryHostConfig` trait methods.
-use std::sync::Once;
use tinymemory_api::host::MemoryHostConfig;
use crate::core::runtime::ServiceSet;