Skip to content

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

chore(agent): remove unused test-only recovery helper and import

Steven Enamakel66be6477c5ea
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 2d7198c11c..3d6f2e3b2d 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -46,13 +46,13 @@ use tinyagents_tasks::{
use super::completion_notice::BackgroundCompletionFormatter;
pub(crate) use super::completion_notice::{BackgroundAgentOutcome, AWAITING_INPUT_LABEL};
#[cfg(test)]
+pub(crate) use super::completion_target::claim_recovery;
+#[cfg(test)]
pub(crate) use super::completion_target::tests::{
forget_workspace_for_test, install_store_for_test, TestWorkspace,
};
pub(crate) use super::completion_target::CompletionTarget;
use super::completion_target::{awaiting_input_record_id, awaiting_input_record_prefix};
-#[cfg(test)]
-pub(crate) use super::completion_target::{claim_recovery, forget_recovery};
pub(crate) use super::completion_target::{claim_recovery_ctx, forget_recovery_ctx};
/// How long a settled record (delivered / gave up / tombstoned) is kept before
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs
index 00a9963b6e..da052404f5 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs
@@ -7,7 +7,7 @@ use std::sync::Arc;
use tinyagents_tasks::CompletionRouter;
-use super::{router_for_workspace, state, SESSION_THREADS_CAP};
+use super::{state, SESSION_THREADS_CAP};
use crate::core::runtime::DispatchCtx;
/// The key of a thread or session id in `HostState`'s maps: per profile of
diff --git a/crates/openhuman-core/src/agent/orchestration/completion_target.rs b/crates/openhuman-core/src/agent/orchestration/completion_target.rs
index 96b1a07912..639fc2d084 100644
--- a/crates/openhuman-core/src/agent/orchestration/completion_target.rs
+++ b/crates/openhuman-core/src/agent/orchestration/completion_target.rs
@@ -166,8 +166,3 @@ pub(crate) fn forget_recovery_ctx(ctx: &crate::core::runtime::DispatchCtx, works
state().stores.insert(scope, router.store());
}
}
-
-#[cfg(test)]
-pub(crate) fn forget_recovery(workspace_dir: &Path) {
- forget_recovery_ctx(&crate::core::runtime::DispatchCtx::ambient(), workspace_dir)
-}