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
feat(flows): dedupe repeated commits and digest runs
Steven Enamakelfa2dc35e4b6d
diff --git a/crates/openhuman-core/src/flows/bus/dedup_commit.rs b/crates/openhuman-core/src/flows/bus/dedup_commit.rsindex 22a117b160..fb127b6a5e 100644--- a/crates/openhuman-core/src/flows/bus/dedup_commit.rs+++ b/crates/openhuman-core/src/flows/bus/dedup_commit.rs@@ -202,7 +202,13 @@ impl DedupCommitSubscriber {/// a schema + call-site change bigger than this PR's scope; reported as a/// follow-up rather than attempted here.fn dedup_node_ids(&self, flow_id: &str) -> Vec<String> {- match store::get_flow(&super::owner::config_for_scope(&crate::core::runtime::DispatchCtx::ambient(), &self.config), flow_id) {+ match store::get_flow(+ &super::owner::config_for_scope(+ &crate::core::runtime::DispatchCtx::ambient(),+ &self.config,+ ),+ flow_id,+ ) {Ok(Some(flow)) => flow.graph.nodes@@ -223,7 +229,10 @@ impl DedupCommitSubscriber {async fn handle_finished(&self, flow_id: &str, run_id: &str, status: &str) {// As the flow's owner: its own configuration (`super::owner`).- let config = super::owner::config_for_scope(&crate::core::runtime::DispatchCtx::ambient(), &self.config);+ let config = super::owner::config_for_scope(+ &crate::core::runtime::DispatchCtx::ambient(),+ &self.config,+ );let node_ids = self.dedup_node_ids(flow_id);if node_ids.is_empty() {tracing::trace!(target: "flows", %flow_id, %run_id, %status, "[dedup-commit] no dedup nodes in this flow — nothing to settle");diff --git a/crates/openhuman-core/src/flows/bus/run_digest.rs b/crates/openhuman-core/src/flows/bus/run_digest.rsindex d5eee797b3..d5697b4f6c 100644--- a/crates/openhuman-core/src/flows/bus/run_digest.rs+++ b/crates/openhuman-core/src/flows/bus/run_digest.rs@@ -61,7 +61,10 @@ impl FlowRunDigestSubscriber {async fn handle_finished(&self, flow_id: &str, run_id: &str, status: &str) {// As the flow's owner: its own configuration (`super::owner`).- let config = super::owner::config_for_scope(&crate::core::runtime::DispatchCtx::ambient(), &self.config);+ let config = super::owner::config_for_scope(+ &crate::core::runtime::DispatchCtx::ambient(),+ &self.config,+ );if status != "completed" && status != "completed_with_warnings" {tracing::trace!(target: "flows", %flow_id, %run_id, %status, "[flows] digest: ignoring non-success terminal status");return;