Skip to content

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

fix(middleware): skip user-actionable escalation for command exit reports

Steven Enamakel84c8718ccdf7
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
index 6008195362..fe7adfb92d 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
@@ -671,7 +671,10 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>
// #4092: if the blocker is user-actionable (a missing connection),
// escalate with a concrete ask instead of the crate's generic
// "unreachable environment, report back" summary.
- let escalation = user_actionable_escalation(tool_name, &content);
+ // A command printing `not connected` is not a missing integration.
+ let escalation = (!is_command_exit_report(&content))
+ .then(|| user_actionable_escalation(tool_name, &content))
+ .flatten();
let user_actionable = escalation.is_some();
let summary = escalation.unwrap_or(summary);
tracing::warn!(