The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(flows): report cancelled runs as in-flight only when actor is live
Steven Enamakel23392c57959d
diff --git a/crates/openhuman-core/src/flows/runs_adapter.rs b/crates/openhuman-core/src/flows/runs_adapter.rsindex 7e9dfeb381..59163b4204 100644--- a/crates/openhuman-core/src/flows/runs_adapter.rs+++ b/crates/openhuman-core/src/flows/runs_adapter.rs@@ -360,7 +360,10 @@ pub(crate) async fn cancel_run().await.map_err(|error| error.wire_message())?;- let was_in_flight = response.signalled && active.is_some();+ let was_in_flight = response.signalled+ && active+ .as_ref()+ .is_some_and(|session| session.is_live_actor());Ok((response.signalled, was_in_flight))}diff --git a/crates/openhuman-core/src/flows/runs_adapter/session.rs b/crates/openhuman-core/src/flows/runs_adapter/session.rsindex 054c1ec216..30d6c9352b 100644--- a/crates/openhuman-core/src/flows/runs_adapter/session.rs+++ b/crates/openhuman-core/src/flows/runs_adapter/session.rs@@ -183,6 +183,10 @@ impl RunSession {self.live_actor.load(std::sync::atomic::Ordering::Acquire)}+ pub(super) fn is_live_actor(&self) -> bool {+ self.live_actor.load(std::sync::atomic::Ordering::Acquire)+ }+pub(super) fn key(&self) -> RunKey {let bindings = self.bindings