Skip to content

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

test(session-host): set model name in session host fixtures

Steven Enamakel09fdb364e717
diff --git a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
index 2294cd8185..387bb48d7e 100644
--- a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
@@ -214,6 +214,7 @@ async fn credential_redaction_survives_resume() {
crate::agent::SessionHostBuilder::new()
.with_session_history_locator(Arc::clone(&locator))
.chat_model(chat_model.clone())
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(root.path().join("workspace"))
.action_dir(root.path().to_path_buf())
@@ -340,6 +341,7 @@ async fn review_blocked_input_does_not_mutate_existing_session() {
let mut host = crate::agent::SessionHostBuilder::new()
.with_session_history_locator(Arc::clone(&locator))
.chat_model(chat_model)
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(root.path().join("workspace"))
.action_dir(root.path().to_path_buf())
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
index 8f72b88ee9..358f66f648 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
@@ -10,6 +10,7 @@ async fn debug_prompt_matches_the_system_prompt_sent_on_a_cold_turn() {
let model_for_host: Arc<dyn tinyinference_llm::model::ChatModel<()>> = model.clone();
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model(model_for_host)
+ .model_name("test/session-fixture".to_string())
.tools(crate::agent::goals::goal_tools(action_dir.path()))
.action_dir(action_dir.path().to_path_buf())
.workspace_dir(action_dir.path().to_path_buf())