Skip to content

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

fix(ops): make backend_api_url a string instead of null

Steven Enamakeld9d95c8d5dee
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rs
index a82ef63fee..2a529f7f94 100644
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@ -592,8 +592,10 @@ fn module_config(config: &Config, id: &str) -> serde_json::Value {
"composio_entity_id": config.composio.entity_id,
// Proxied Composio addresses the backend with this; without it the module
// builds its request against an empty base and fails in the HTTP client.
- // `null` when no backend transport is installed.
- "backend_api_url": crate::backend::base_url(&config.api_url).ok(),
+ // Empty (never `null`: the module's config field is a string) when no
+ // backend transport is installed; proxied Composio then fails in the
+ // HTTP client, which the module already reports per connection.
+ "backend_api_url": crate::backend::base_url(&config.api_url).unwrap_or_default(),
"driver_id": "tinymemory",
})
}