Skip to content

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

chore(agent): gate mark_collected behind cfg(test)

Steven Enamakel66167568eb81
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 807f470189..1603d4b7dc 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -623,6 +623,7 @@ pub(crate) fn pending_for_ctx(
/// background completion is not independently delivered as a second, duplicate
/// answer. The router withdraws an already-recorded completion and drops one
/// that arrives later. Returns whether a pending completion was withdrawn.
+#[cfg(test)]
pub(crate) fn mark_collected(workspace_dir: &Path, task_id: &str) -> bool {
let entry = entry_for(workspace_dir);
mark_collected_in_entry(entry, task_id)