Skip to content

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

chore(session_host): gate test helper behind cfg(test)

Steven Enamakelce84632c2190
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index f24444e366..8cbdd40e53 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -10,10 +10,10 @@ mod attachment_input;
#[path = "runtime_session_enrichment.rs"]
mod enrichment;
mod memory_ingest;
-#[path = "runtime_session_prompt.rs"]
-mod prompt;
mod permanent;
mod post_commit;
+#[path = "runtime_session_prompt.rs"]
+mod prompt;
mod tool_rules;
mod transcript;
#[path = "runtime_session_turn.rs"]
@@ -273,6 +273,7 @@ impl OpenHumanTurnPrelude {
})
}
+ #[cfg(test)]
fn synthesized_tool_names_for_test(&self) -> std::collections::HashSet<String> {
self.tool_surface
.lock()
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt.rs
index 2409c9eb39..d636575805 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt.rs
@@ -75,6 +75,4 @@ impl super::OpenHumanTurnPrelude {
.unwrap_or_else(std::sync::PoisonError::into_inner)
.build_system_prompt_tiered(&context)
}
-
- #[cfg(test)]
}