Skip to content

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

fix(test): add missing import and fix test data for repl tools tests

Steven Enamakel2c4e798d7877
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
index 5430b663da..5964d63d18 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
@@ -454,6 +454,7 @@ fn the_recovery_tool_joins_a_belt_only_when_something_can_point_at_it() {
#[test]
fn the_repl_tools_join_a_belt_only_while_handle_mode_is_active() {
+ use crate::agent::harness::definition::NO_TOOLS_SENTINEL;
use crate::inference::tokenjuice::REPL_TOOL_NAMES;
let belt = || std::collections::HashSet::from(["web_fetch".to_string()]);
diff --git a/crates/openhuman-core/src/inference/tokenjuice/repl_tools_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/repl_tools_tests.rs
index ddd4db363d..0aa39b58c3 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/repl_tools_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/repl_tools_tests.rs
@@ -33,7 +33,8 @@ fn log_body() -> String {
let rows: String = (0..900)
.map(|i| format!("row {i}: value {}\n", i * 7))
.collect();
- format!("# Report\n{rows}ERROR: needle at the end\n")
+ let tail: String = (900..1000).map(|i| format!("row {i}: value {}\n", i * 7)).collect();
+ format!("# Report\n{rows}ERROR: needle in the middle\n{tail}")
}
/// Compress `content` in handle mode against `store`, returning the model-facing