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
refactor(flows): remove dedup commit subscriber
Steven Enamakel1757b9813674
diff --git a/crates/openhuman-core/src/core/runtime/subscribers.rs b/crates/openhuman-core/src/core/runtime/subscribers.rsindex f9f07b4387..d5fff50ced 100644--- a/crates/openhuman-core/src/core/runtime/subscribers.rs+++ b/crates/openhuman-core/src/core/runtime/subscribers.rs@@ -367,26 +367,6 @@ pub(super) fn register_domain_subscribers("[event_bus] failed to register flows run-digest subscriber — bus not initialized");}- // Dedup commit-on-success (issue #5263 PR2): on every terminal- // `FlowRunFinished`, settles each `dedup` node in the flow's graph- // — unions tentative keys into committed on success, releases- // (clears) tentative on failure/cancel/interrupt. This is the- // host half of the `dedup` node's exactly-once contract; the node- // itself (`tinyflows::nodes::control_flow::dedup`) only ever- // reads `committed` and writes `tentative`. Registered in the- // same `group_first_time(DomainGroup::Flows)` block as the other- // two flows subscribers above — see the digest subscriber's- // comment just above for why a second `group_first_time` guard- // here would be redundant.- if let Some(handle) = crate::core::bus::BUS.subscribe(Arc::new(- crate::flows::bus::DedupCommitSubscriber::new(Arc::new(config.clone())),- )) {- std::mem::forget(handle);- } else {- log::warn!(- "[event_bus] failed to register flows dedup-commit subscriber — bus not initialized"- );- }}} else {log::debug!("[event_bus] flows trigger subscriber SKIPPED — Flows domain disabled");diff --git a/crates/openhuman-core/src/flows/bus.rs b/crates/openhuman-core/src/flows/bus.rsindex 064aea9752..aa70a0e291 100644--- a/crates/openhuman-core/src/flows/bus.rs+++ b/crates/openhuman-core/src/flows/bus.rs@@ -14,12 +14,10 @@#[path = "bus_tests.rs"]mod tests;-mod dedup_commit;mod owner;mod run_digest;mod trigger;-pub use dedup_commit::DedupCommitSubscriber;pub use run_digest::FlowRunDigestSubscriber;pub use trigger::FlowTriggerSubscriber;pub(crate) use trigger::{extract_trigger_config, extract_trigger_kind};@@ -33,8 +31,6 @@ use crate::core::events::DomainEvent;#[cfg(test)]use crate::flows::store;#[cfg(test)]-use dedup_commit::{flow_commit_lock, CommitTestHooks};-#[cfg(test)]use run_digest::{digest_filter, enforce_retention_cap, render_run_digest, truncate_chars, DIGEST_MAX_CHARS,};