Skip to content

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

refactor(orchestration): remove unused task record lookup helper

Steven Enamakel6134ef0e6f0d
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
index e3f0adc209..ad0b500a09 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
@@ -61,5 +61,5 @@ pub(crate) use roster::active_subagents_context_block;
#[cfg(test)]
pub(crate) use task_ledger::task_records;
pub(crate) use task_ledger::{
- reconcile_orphaned_tasks_on_boot, task_record_for_task_in_workspace, task_store_for_workspace,
+ reconcile_orphaned_tasks_on_boot, task_store_for_workspace,
};
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
index f48cbb1d98..d426cd8f3b 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
@@ -257,18 +257,6 @@ pub(crate) fn reconcile_orphaned_tasks_on_boot(workspace_dir: &Path) -> usize {
reconciled
}
-pub(crate) fn task_record_for_task_in_workspace(
- workspace_dir: &Path,
- task_id: &str,
- parent_session: &str,
-) -> Result<OrchestrationTaskRecord, WaitError> {
- subagent_record_for_task(
- task_store_for_workspace(workspace_dir).as_ref(),
- task_id,
- parent_session,
- )
-}
-
/// Snapshot the typed lifecycle records, optionally scoped to a `parent_session`.
#[cfg(test)]
pub(crate) fn task_records(parent_session: Option<&str>) -> Vec<OrchestrationTaskRecord> {