Skip to content

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

fix(flows): resolve owner config from self in bus subscribers

Steven Enamakel50713fad0e0b
diff --git a/crates/openhuman-core/src/flows/bus/dedup_commit.rs b/crates/openhuman-core/src/flows/bus/dedup_commit.rs
index 0240e10972..47634eabdb 100644
--- a/crates/openhuman-core/src/flows/bus/dedup_commit.rs
+++ b/crates/openhuman-core/src/flows/bus/dedup_commit.rs
@@ -223,7 +223,7 @@ 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(&config);
+ let config = super::owner::config_for_scope(&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.rs
index 595d8fb8a8..8e379f8e3b 100644
--- a/crates/openhuman-core/src/flows/bus/run_digest.rs
+++ b/crates/openhuman-core/src/flows/bus/run_digest.rs
@@ -61,7 +61,7 @@ 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(&config);
+ let config = super::owner::config_for_scope(&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;