Skip to content

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

fix(memory): fall back to invalid URL when base URL resolution fails

Steven Enamakelbbae5ce94007
diff --git a/crates/openhuman-core/src/memory/host.rs b/crates/openhuman-core/src/memory/host.rs
index b5e8e3865e..13515d6f1b 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_default()
+ crate::backend::base_url(&self.api_url).unwrap_or_else(|_| "https://example.invalid".into())
}
fn session_token(&self) -> Result<Option<String>, String> {