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(background_delivery): remove unused test-only claim_ready helper
Steven Enamakel974f4e9fee61
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex 1a0adf6d62..b51aadef69 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -239,29 +239,6 @@ pub(crate) fn recover_on_open(ctx: &DispatchCtx, workspace_dir: &Path, fence: Drscheduled}-/// Claim everything ready for a thread **right now** (sync, testable): `None`-/// (queue untouched) when the thread is busy or nothing is pending. A claimed-/// batch stays leased until the caller settles it with `mark_delivered` /-/// `mark_failed` / `release`.-#[cfg(test)]-fn claim_ready(- ctx: &DispatchCtx,- router: &CompletionRouter,- thread_id: &str,-) -> Option<Vec<CompletionRecord>> {- if is_busy(ctx, thread_id) {- return None;- }- match router.claim_pending(thread_id, usize::MAX) {- Ok(batch) if !batch.is_empty() => Some(batch),- Ok(_) => None,- Err(error) => {- log::error!("[background_delivery] claim failed thread_id={thread_id} error={error}");- None- }- }-}-/// Drain + deliver pending completions for a thread — if idle and not already/// delivering. Batches everything ready at this instant into one system turn.async fn try_deliver<D, Fut>(