Skip to content

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

fix(ops): broaden connection timeout detection in backend failure classifier

Steven Enamakel0c2040990016
diff --git a/crates/openhuman-core/src/flows/ops/builder.rs b/crates/openhuman-core/src/flows/ops/builder.rs
index 20d2cb35fa..689befea1b 100644
--- a/crates/openhuman-core/src/flows/ops/builder.rs
+++ b/crates/openhuman-core/src/flows/ops/builder.rs
@@ -504,7 +504,7 @@ pub(super) fn is_backend_or_infrastructure_failure(error: &str) -> bool {
"gateway timeout",
"connection refused",
"connection reset",
- "connection timed out while calling",
+ "connection timed out",
"transport error while calling",
"bucket does not exist",
"http 5",
diff --git a/crates/openhuman-core/src/flows/ops_builder_repair_tests.rs b/crates/openhuman-core/src/flows/ops_builder_repair_tests.rs
index fcaf3cd510..334e79c2ed 100644
--- a/crates/openhuman-core/src/flows/ops_builder_repair_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_builder_repair_tests.rs
@@ -18,6 +18,9 @@ fn classifies_backend_failures_without_classifying_graph_timeouts() {
assert!(is_backend_or_infrastructure_failure(
"connection timed out while calling file storage"
));
+ assert!(is_backend_or_infrastructure_failure(
+ "POST https://api.example.test/files failed: connection timed out"
+ ));
assert!(!is_backend_or_infrastructure_failure(
"agent node fetch_profile timed out after 30 seconds"
));