Skip to content

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

fix(modules): mark resolution failures as terminal before reporting

Steven Enamakelde19218f6e5f
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rs
index 11bc9ce2ee..04b68c9c08 100644
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@ -204,6 +204,10 @@ async fn start_resolution(
Resolution::Ready
}
Err(reason) => {
+ // Every resolution failure is terminal for the process (the
+ // outcome is cached), whichever path produced it; marking here
+ // makes later re-reports classify as `ModuleUnavailable`.
+ let reason = mark_terminal(reason);
report_resolution_failure(id, &reason);
Resolution::Failed(reason)
}