Skip to content

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

fix(install): handle missing install path in transport

Steven Enamakel6230ad64cb9b
diff --git a/crates/openhuman-core/src/api/transport/install.rs b/crates/openhuman-core/src/api/transport/install.rs
index a70ff2fa0a..190f01497e 100644
--- a/crates/openhuman-core/src/api/transport/install.rs
+++ b/crates/openhuman-core/src/api/transport/install.rs
@@ -86,3 +86,13 @@ pub fn resolve_backend_transport() -> Result<Arc<dyn BackendTransport>, BackendT
Err(BackendTransportError::Unavailable)
}
}
+
+/// Whether a backend call made right now would find a transport (see
+/// [`resolve_backend_transport`]). Paths that talk to the backend host
+/// directly instead of through the port (the Langfuse proxy push, the socket,
+/// channel reply delivery, browser-task module config) check this first, so a
+/// core running without a TinyHumans connection skips them quietly instead of
+/// reaching a backend it was never connected to.
+pub fn is_installed() -> bool {
+ resolve_backend_transport().is_ok()
+}