Skip to content

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

refactor(session_host): remove unused test-only accessors

Steven Enamakel4c3a99394ab5
diff --git a/crates/openhuman-core/src/agent/session_host/mod.rs b/crates/openhuman-core/src/agent/session_host/mod.rs
index ccd9633783..3c8870378b 100644
--- a/crates/openhuman-core/src/agent/session_host/mod.rs
+++ b/crates/openhuman-core/src/agent/session_host/mod.rs
@@ -48,8 +48,6 @@ mod runtime;
mod runtime_session;
mod session_api;
pub(crate) mod stop_summary;
-#[cfg(test)]
-mod tool_progress;
mod turn;
// `pub(crate)` since issue #6014: the tool-call-cap instruction is now appended
// inside the loop by `tinyagents::middleware::FinalCallWrapUpMiddleware`, so the
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
index 28299726c1..3f6c63d809 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
@@ -107,21 +107,6 @@ impl OpenHumanSessionHost {
Arc::clone(&self.durable_tool_specs)
}
- #[cfg(test)]
- pub(crate) fn visible_tool_names_for_test(&self) -> &std::collections::HashSet<String> {
- &self.visible_tool_names
- }
-
- #[cfg(test)]
- pub(crate) fn deferred_tool_names_for_test(&self) -> &std::collections::HashSet<String> {
- &self.deferred_tool_names
- }
-
- #[cfg(test)]
- pub(crate) fn tool_policy_session_for_test(&self) -> &tinytools::ToolPolicySession {
- &self.tool_policy_session
- }
-
/// The full host [`Config`](crate::config::Config) this session
/// was built with, through the factory or an explicitly configured model.
///