Skip to content

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

refactor(agent): extract background delivery into its own module

Steven Enamakel65800a2d57b5
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
index 8f7b11edcc..abd5aeaf0b 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
@@ -328,7 +328,7 @@ fn recover_fenced(ctx: &DispatchCtx, workspace_dir: &Path, fence: DrainFence) ->
"[background_delivery] scheduling redelivery of undelivered completions after restart \
thread_id={thread_id}"
);
- schedule_delivery_inner(thread_id.clone(), RECOVERY_DELAY, true, fence.clone());
+ schedule_delivery_inner(ctx.clone(), thread_id.clone(), RECOVERY_DELAY, true, fence.clone());
}
threads.len()
}