Skip to content

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

refactor(rpc): extract http server module

Steven Enamakelb5a54c147e0f
diff --git a/crates/openhuman-rpc/src/server/http/mod.rs b/crates/openhuman-rpc/src/server/http/mod.rs
index 8e6b49f8ff..7a150644f3 100644
--- a/crates/openhuman-rpc/src/server/http/mod.rs
+++ b/crates/openhuman-rpc/src/server/http/mod.rs
@@ -171,8 +171,8 @@ async fn http_request_log_middleware(req: Request, next: Next) -> Response {
/// Handler for the root endpoint, returning server information and available endpoints.
async fn root_handler() -> impl IntoResponse {
let api_server = match crate::core_host::config::Config::load_or_init().await {
- Ok(cfg) => crate::core_host::backend::base_url(&cfg.api_url).ok(),
- Err(_) => crate::core_host::backend::base_url(&None).ok(),
+ Ok(cfg) => cfg.resolved_endpoints.control_plane_url.clone(),
+ Err(_) => None,
};
(