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(modules): a disabled component also skips its released library
M3gA-Mind4539885f0357
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex 9ecac130f0..40e0782fa4 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -90,7 +90,8 @@ pub(crate) fn resolve_bundled_dir(}/// Library file stems of every module whose component is off, for skipping-/// their search-path artifacts. Both `name` and `libname` spellings.+/// their search-path artifacts. Both `name` and `libname` spellings, for the+/// source build (`lib_name`) and the release download (`<id>_module`).#[must_use]pub fn disabled_lib_stems(config: &Config) -> Vec<String> {registry::ALL@@ -98,7 +99,13 @@ pub fn disabled_lib_stems(config: &Config) -> Vec<String> {.filter(|record| disabled_component(config, record.id).is_some()).flat_map(|record| {let stem = record.source.lib_name.to_string();- [format!("lib{stem}"), stem]+ let released = format!("{}_module", record.id);+ [+ format!("lib{stem}"),+ stem,+ format!("lib{released}"),+ released,+ ]}).collect()}diff --git a/crates/openhuman-core/src/modules/ops_components_tests.rs b/crates/openhuman-core/src/modules/ops_components_tests.rsindex 8038ee32c6..d2db88397e 100644--- a/crates/openhuman-core/src/modules/ops_components_tests.rs+++ b/crates/openhuman-core/src/modules/ops_components_tests.rs@@ -43,6 +43,15 @@ fn disabled_lib_stems_cover_only_disabled_modules() {assert!(disabled_lib_stems(&Config::default()).is_empty());}+#[test]+fn disabled_lib_stems_cover_the_released_library_name() {+ // A downloaded release is `lib<id>_module`, which differs from `lib_name`+ // for modules such as tinysearch; a disabled one must still be skipped.+ let stems = disabled_lib_stems(&config_without("search"));+ assert!(stems.contains(&"libtinysearch_module".to_string()));+ assert!(stems.contains(&"tinysearch_module".to_string()));+}+#[cfg(feature = "web3")]#[tokio::test]async fn a_disabled_wallet_never_loads_the_tinywallet_module() {