Skip to content

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

fix(web_chat): serialize session routing tests against provider override

Steven Enamakel2f25b68d6660
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-31d92a011163d288990f1e8201004c3dca4c33b60f9b1aaf042df4046f9f1662.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-31d92a011163d288990f1e8201004c3dca4c33b60f9b1aaf042df4046f9f1662.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-32c7a50f888d217f57117adb217100fa56b4e4361dbba4eb17db27020ab5d4aa.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-32c7a50f888d217f57117adb217100fa56b4e4361dbba4eb17db27020ab5d4aa.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-3c5b4ced8cab80dbd09eb655c8ff2dbc470ca7c007a2a8f9cd5e5562c944d1cd.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-3c5b4ced8cab80dbd09eb655c8ff2dbc470ca7c007a2a8f9cd5e5562c944d1cd.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-40f4ad2bee4863c4d4f645d569019ae8decb918e93fa91157fa96f56fd67c571.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-40f4ad2bee4863c4d4f645d569019ae8decb918e93fa91157fa96f56fd67c571.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-477a8227008948ee9e81e293d25eca2880a265719a03ad455a45e43fbcd8507d.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-477a8227008948ee9e81e293d25eca2880a265719a03ad455a45e43fbcd8507d.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-491c99a2fd7ee5c94e205d18b7f020408526593f6c34b17b61e0ef2d38707ec9.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-491c99a2fd7ee5c94e205d18b7f020408526593f6c34b17b61e0ef2d38707ec9.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-4c3fe94c4cd1ba1a66db211f5d34fd308cc4686c15ab266903d626bb9d34251a.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-4c3fe94c4cd1ba1a66db211f5d34fd308cc4686c15ab266903d626bb9d34251a.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-5c69a44bcc539a01c8bbdd6d6d722c14889548a098ea2293b1c6df5996599595.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-5c69a44bcc539a01c8bbdd6d6d722c14889548a098ea2293b1c6df5996599595.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-898914c46aef46e2e7f34fc55d6ff4463fe9fa968e4f13755a734469146a6b77.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-898914c46aef46e2e7f34fc55d6ff4463fe9fa968e4f13755a734469146a6b77.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-8f02f0221439684ac9d2a0da9f450e3699c7f4cc8cf0f1263c5b51dac6ede95f.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-8f02f0221439684ac9d2a0da9f450e3699c7f4cc8cf0f1263c5b51dac6ede95f.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-b2c69379f419cab9cd27e7b787a8f8e6715cc827ef5ea1fe9c4f1a4aecbbcee6.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-b2c69379f419cab9cd27e7b787a8f8e6715cc827ef5ea1fe9c4f1a4aecbbcee6.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-bf536e0575a6df5bf0f08a1df4760c6d9b029edaab12397fa66392612ef2ecd2.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-bf536e0575a6df5bf0f08a1df4760c6d9b029edaab12397fa66392612ef2ecd2.lock
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/crates/openhuman-core/src/integrations/composio/client.rs b/crates/openhuman-core/src/integrations/composio/client.rs
index b6ce83955f..120cf051a1 100644
--- a/crates/openhuman-core/src/integrations/composio/client.rs
+++ b/crates/openhuman-core/src/integrations/composio/client.rs
@@ -25,7 +25,7 @@ pub use direct::direct_list_connections;
pub(crate) use direct::direct_list_tools;
pub(crate) use factory::create_direct_client_for_api_key;
pub use factory::{resolve_composio_route, ComposioRoute};
-pub(crate) use network::{module_transport, module_transport_with_proxy};
+pub(crate) use network::module_transport_with_proxy;
// Brought into this module's own namespace (private `use`, not `pub use`)
// so `client_tests.rs` — declared as a direct child module of `client`
diff --git a/crates/openhuman-core/src/web_chat/session_routing_tests.rs b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
index ea888c1d99..211cfabe59 100644
--- a/crates/openhuman-core/src/web_chat/session_routing_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_routing_tests.rs
@@ -225,6 +225,8 @@ fn unknown_qualified_models_keep_the_existing_route() {
#[test]
fn selected_managed_route_constructs_with_the_picker_model() {
+ // Wait out any test that has a mock chat model installed process-wide.
+ let _serial = crate::inference::provider::factory::test_provider_override::exclusive();
let config = Config::default();
let selection = "openrouter/author/picked-model:free";
let effective = effective_session_config(&config, Some(selection), None);
@@ -239,6 +241,8 @@ fn selected_managed_route_constructs_with_the_picker_model() {
#[test]
fn selected_ollama_route_constructs_the_selected_model_without_network() {
+ // Wait out any test that has a mock chat model installed process-wide.
+ let _serial = crate::inference::provider::factory::test_provider_override::exclusive();
let mut config = Config::default();
config.chat_provider = Some("openhuman".to_string());
config.local_ai.base_url = Some("http://127.0.0.1:1".to_string());
@@ -392,6 +396,8 @@ fn configured_huggingface_route() -> Config {
}
fn assert_huggingface_model_builds(config: &Config, expected_model: &str) {
+ // Wait out any test that has a mock chat model installed process-wide.
+ let _serial = crate::inference::provider::factory::test_provider_override::exclusive();
let (_, resolved_model) =
crate::inference::provider::factory::create_chat_model_with_model_id("chat", config, 0.0)
.expect("case-insensitive cloud selection should resolve through its configured slug");