The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(http_host): change registration failure from log to panic
Steven Enamakelf5690b276ba9
diff --git a/crates/openhuman-rpc/src/http_host/mod.rs b/crates/openhuman-rpc/src/http_host/mod.rsindex 3ef70e82aa..cd46f74326 100644--- a/crates/openhuman-rpc/src/http_host/mod.rs+++ b/crates/openhuman-rpc/src/http_host/mod.rs@@ -49,11 +49,11 @@ pub fn register_controllers() -> Result<(), String> {})}-/// [`register_controllers`] for call sites that cannot propagate an error:-/// a failure means a namespace collision in the registry, which is a build-/// bug, so it is logged loudly rather than aborting the server.+/// [`register_controllers`] for server setup paths that cannot return an+/// error. A registration failure is a broken host invariant, so fail before+/// installing the server or building its router.pub(crate) fn ensure_registered() {- if let Err(error) = register_controllers() {- log::error!("{LOG_PREFIX} controller registration failed: {error}");- }+ register_controllers().unwrap_or_else(|error| {+ panic!("{LOG_PREFIX} controller registration failed: {error}");+ });}