Skip to content

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

feat(orchestration): add ctx-aware mark_collected helper

Steven Enamakel2a6b96fed01a
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 9b17d0e4ea..da682d7474 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -609,6 +609,14 @@ pub(crate) fn mark_collected(workspace_dir: &Path, task_id: &str) -> bool {
mark_collected_in_entry(entry, task_id)
}
+pub(crate) fn mark_collected_ctx(
+ ctx: &DispatchCtx,
+ workspace_dir: &Path,
+ task_id: &str,
+) -> bool {
+ mark_collected_in_entry(entry_for_ctx(ctx, workspace_dir), task_id)
+}
+
#[cfg(test)]
fn mark_collected_in_entry(entry: Arc<Entry>, task_id: &str) -> bool {
let router = &entry.router;