Skip to content

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

chore(agent): tidy repeated failure middleware formatting

Steven Enamakel7480e396bf5f
diff --git a/crates/openhuman-core/src/agent/session_host/stop_summary.rs b/crates/openhuman-core/src/agent/session_host/stop_summary.rs
index 062dd8bff7..0bba419089 100644
--- a/crates/openhuman-core/src/agent/session_host/stop_summary.rs
+++ b/crates/openhuman-core/src/agent/session_host/stop_summary.rs
@@ -183,7 +183,7 @@ impl StopReasonKind {
/// Read the kind from a breaker stop note. The notes come from a fixed
/// set of host and harness templates (`ClassifiedFailureTracker`,
/// `NoProgressTracker`, `RepeatProgressMiddleware`,
- /// `inference::failure_copy::halt`), so this matches
+ /// `agent::tinyagents::middleware::repeated_failure`), so this matches
/// their fixed wording, never the tool output they quote.
pub(crate) fn from_stop_note(note: &str) -> Self {
let note = note.trim();
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 d1e8c915b1..a7d4138fc3 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
@@ -185,23 +185,13 @@ struct HaltCopy;
impl FailurePolicy for HaltCopy {
fn identical_halt_summary(&self, tool: &str, count: u32, failure_text: &str) -> String {
- stop::halt_summary::retry_exhausted(
- &OpenHumanCopyProvider,
- tool,
- count,
- failure_text,
- )
- .summary
+ stop::halt_summary::retry_exhausted(&OpenHumanCopyProvider, tool, count, failure_text)
+ .summary
}
fn no_progress_halt_summary(&self, consecutive: u32, tool: &str, failure_text: &str) -> String {
- stop::halt_summary::no_progress(
- &OpenHumanCopyProvider,
- consecutive,
- tool,
- failure_text,
- )
- .summary
+ stop::halt_summary::no_progress(&OpenHumanCopyProvider, consecutive, tool, failure_text)
+ .summary
}
}