Skip to content

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

fix(orchestration): use initial delay for background delivery debounce

Steven Enamakel017b5a5ee6be
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
index bdc89e393e..1cce703366 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
@@ -303,7 +303,7 @@ where
let router = background_completions::router_for_workspace_ctx(&busy_ctx, &workspace_dir);
let delivery = CompletionDelivery::new(
CompletionDeliveryConfig {
- debounce: DEBOUNCE,
+ debounce: initial_delay,
recovery_delay: RECOVERY_DELAY,
retry_backoff: Duration::from_secs(2),
busy_poll: RECOVERY_BUSY_POLL,
@@ -377,9 +377,8 @@ where
.await
} else {
delivery
- .deliver_once_with_initial_delay(
+ .deliver_once_with_error(
target,
- initial_delay,
|| is_busy(&busy_ctx, &thread_id),
fence.clone(),
deliver,