The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(session_host): improve hint model handling in fixtures
Steven Enamakeld59ad854a9b9
diff --git a/crates/openhuman-core/src/agent/session_host/test_support.rs b/crates/openhuman-core/src/agent/session_host/test_support.rsindex 34111735b4..4d806bc68c 100644--- a/crates/openhuman-core/src/agent/session_host/test_support.rs+++ b/crates/openhuman-core/src/agent/session_host/test_support.rs@@ -63,8 +63,19 @@ fn model_fixture_entry() -> ChatModelEntry {Some(model) if !model.starts_with("hint:") => Some(model.to_string()),Some(model) => model.strip_prefix("hint:")- .filter(|role| crate::config::WORKLOAD_ROLES.contains(role))- .map(|_| "test/session-fixture".to_string()),+ .filter(|hint_role| crate::config::WORKLOAD_ROLES.contains(hint_role))+ .map(|hint_role| {+ if hint_role == "chat" {+ config+ .default_model+ .as_deref()+ .filter(|configured| !configured.starts_with("hint:"))+ .map(str::to_string)+ .unwrap_or_else(|| "test/session-fixture".to_string())+ } else {+ "test/session-fixture".to_string()+ }+ }),None if role == "agentic" => Some("test/session-fixture".into()),None => match config.default_model.as_deref() {Some("fixture-reasoning") => Some("test/selected-reasoning".into()),