Skip to content

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

chore: files changed crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs,crates

Steven Enamakel1b3dd00b42cd
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs
index c9b60457bd..97d9ce8ca0 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse/environment.rs
@@ -14,14 +14,17 @@ use super::LOG_TARGET;
const INGESTION_PATH: &str = "/telemetry/langfuse/ingestion";
/// Resolve the Langfuse ingestion URL from the current backend host. Joins the
-/// proxy path onto [`effective_backend_api_url`] — the exact base-server
+/// proxy path onto [`crate::backend::base_url`] — the exact base-server
/// resolution every other backend call uses — via the canonical
/// [`crate::util::url::join_url`] helper, which replaces any path the base
/// carried with the given absolute path. So the host always matches wherever the
/// app's domain calls go (staging, prod, or a custom `api_url` override).
pub(crate) fn ingestion_url(config: &Config) -> String {
- let base = crate::backend::require_base_url(&config.api_url)?;
- crate::util::url::join_url(&base, INGESTION_PATH)
+ // Empty without a backend transport; callers treat a non-`http` URL as
+ // "proxy unavailable" and skip the push.
+ crate::backend::base_url(&config.api_url)
+ .map(|base| crate::util::url::join_url(&base, INGESTION_PATH))
+ .unwrap_or_default()
}
/// The domain the deployed backends live under. A host outside it cannot be
diff --git a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs
index f4ec91bca0..c6db065cba 100644
--- a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs
@@ -46,8 +46,11 @@ const PUSH_TIMEOUT: Duration = Duration::from_secs(10);
/// always matches wherever the app's domain calls go (staging, prod, or a
/// custom `api_url` override).
fn ingestion_url(config: &Config) -> String {
- let base = crate::backend::require_base_url(&config.api_url)?;
- crate::util::url::join_url(&base, INGESTION_PATH)
+ // Empty without a backend transport; callers treat a non-`http` URL as
+ // "proxy unavailable" and skip the push.
+ crate::backend::base_url(&config.api_url)
+ .map(|base| crate::util::url::join_url(&base, INGESTION_PATH))
+ .unwrap_or_default()
}
/// The OpenHuman core crate version (e.g. `0.58.0`), stamped onto every flow
diff --git a/crates/openhuman-core/src/media/generation/provider.rs b/crates/openhuman-core/src/media/generation/provider.rs
index 9cf9da8477..9a09259749 100644
--- a/crates/openhuman-core/src/media/generation/provider.rs
+++ b/crates/openhuman-core/src/media/generation/provider.rs
@@ -48,10 +48,10 @@ pub struct MediaGenerators {
/// Builds generators against the managed backend, or `None` when no backend
/// transport is installed (a core with no TinyHumans connection).
pub fn managed_generators(config: &Config) -> Option<MediaGenerators> {
- let client = match BackendClient::new(&crate::backend::require_base_url(&config.api_url)?) {
+ let client = match BackendClient::from_config(config) {
Ok(client) => client,
Err(error) => {
- tracing::debug!(%error, "[media_generation] invalid backend URL; media tools skipped");
+ tracing::debug!(%error, "[media_generation] no backend client; media tools skipped");
return None;
}
};