Skip to content

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

fix(embedding_host): return build errors from connection test

Steven Enamakel3b9b624b7b84
diff --git a/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs b/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
index 1cd1cd0d73..b87c6f4cce 100644
--- a/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
@@ -114,7 +114,9 @@ pub async fn test_connection(
.await;
let result = match result {
Ok(result) => Ok(result.actual_dims),
- Err(ConnectionTestError::Build(error)) => return Err(error.to_string()),
+ // Temporary characterization: the old helper collapsed construction
+ // errors into the same failure payload as invocation errors.
+ Err(ConnectionTestError::Build(error)) => Err(error.to_string()),
Err(ConnectionTestError::Embed(error)) => Err(error.to_string()),
};