Skip to content

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

fix(host): use unwrap_or_default for base_url fallback

Steven Enamakelcc7cbb532d09
diff --git a/crates/openhuman-core/src/memory/host.rs b/crates/openhuman-core/src/memory/host.rs
index 13515d6f1b..b5e8e3865e 100644
--- a/crates/openhuman-core/src/memory/host.rs
+++ b/crates/openhuman-core/src/memory/host.rs
@@ -101,7 +101,7 @@ impl MemoryHostConfig for Config {
// Resolution (defaults, env overrides, normalisation) belongs to the
// installed backend transport and must not be re-derived on the other
// side of the seam. Empty when no transport is installed.
- crate::backend::base_url(&self.api_url).unwrap_or_else(|_| "https://example.invalid".into())
+ crate::backend::base_url(&self.api_url).unwrap_or_default()
}
fn session_token(&self) -> Result<Option<String>, String> {