Skip to content

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

test(session_host): add model name to session host builders

Steven Enamakel4e15ad33f1fd
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_trace_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_trace_tests.rs
index b8c8314648..69602dcb88 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_trace_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_trace_tests.rs
@@ -73,6 +73,7 @@ async fn cancellation_during_required_output_repair_finalizes_native_run() {
let chat_model: Arc<dyn ChatModel<()>> = model.clone();
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model_with_config(chat_model, Arc::new(config.clone()))
+ .model_name("test/session-fixture".to_string())
.config(config.agent.clone())
.tools(Vec::new())
.workspace_dir(workspace.clone())
diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
index 2d709a3eb2..6285ed3374 100644
--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
@@ -196,6 +196,7 @@ pub(super) fn build_host(
let builder = crate::agent::SessionHostBuilder::new()
.with_session_history_locator(store_locator(root))
.chat_model(chat_model)
+ .model_name("test/session-fixture".to_string())
.tools(tools())
.workspace_dir(root.join("workspace"))
.action_dir(root.to_path_buf());
@@ -463,6 +464,7 @@ fn assert_retired_tool_replay(identity_bound: bool) {
let mut first = crate::agent::SessionHostBuilder::new()
.with_session_history_locator(store_locator(root.path()))
.chat_model(chat_model)
+ .model_name("test/session-fixture".to_string())
.tools(vec![Box::new(ArchivedAudioTool)])
.permanent_tool_names(std::collections::HashSet::from([RETIRED.to_string()]))
.workspace_dir(workspace.clone())
@@ -504,6 +506,7 @@ fn assert_retired_tool_replay(identity_bound: bool) {
crate::agent::SessionHostBuilder::new()
.with_session_history_locator(store_locator(root.path()))
.chat_model(chat_model)
+ .model_name("test/session-fixture".to_string())
.tools(tools())
.workspace_dir(workspace.clone())
.action_dir(root.path().to_path_buf())