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
fix(tokenjuice): keep the test stub without modules, gate only its fixture client
M3gA-Mind22b7d8e349f8
diff --git a/crates/openhuman-core/src/inference/tokenjuice/mod.rs b/crates/openhuman-core/src/inference/tokenjuice/mod.rsindex 4fccf1c334..c16b5e73fa 100644--- a/crates/openhuman-core/src/inference/tokenjuice/mod.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/mod.rs@@ -508,7 +508,7 @@ mod tests;#[path = "repl_tools_tests.rs"]mod repl_tool_tests;-#[cfg(all(test, feature = "modules"))]+#[cfg(test)]#[path = "module_stub_tests.rs"]pub(crate) mod module_stub;diff --git a/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rsindex a4de60ba54..cc789c0818 100644--- a/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs@@ -43,6 +43,7 @@ pub(crate) async fn with_rpc_client<F: std::future::Future>(RPC_CLIENT.scope(fixture, fut).await}+#[cfg(feature = "modules")]pub(crate) fn rpc_client(config: &crate::config::Config) -> Option<tinybus::module::ModuleClient> {RPC_CLIENT.try_with(|fixture| {@@ -56,6 +57,13 @@ pub(crate) fn rpc_client(config: &crate::config::Config) -> Option<tinybus::modu.ok()}+/// Without `modules` there is no fixture client to build, so the caller+/// falls through to its own client.+#[cfg(not(feature = "modules"))]+pub(crate) fn rpc_client(_config: &crate::config::Config) -> Option<tinybus::module::ModuleClient> {+ None+}+/// Run `fut` with `stub` answering every compaction it makes.pub(crate) async fn with_stub<F: std::future::Future>(stub: StubCompactor, fut: F) -> F::Output {STUB.scope(stub, fut).await