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
refactor(runtime): drop unused terminal-unavailable module check
Steven Enamakel530aac506ed2
diff --git a/crates/openhuman-core/src/modules/runtime.rs b/crates/openhuman-core/src/modules/runtime.rsindex f55fe210e7..1ef53c0771 100644--- a/crates/openhuman-core/src/modules/runtime.rs+++ b/crates/openhuman-core/src/modules/runtime.rs@@ -134,38 +134,6 @@ pub fn is_module_serving(id: &str) -> bool {})}-/// Whether an already-started module host has recorded a terminal state for-/// this registry module. An absent or initializing module is transient: an-/// optional background prewarm may still start or wait for it.-#[must_use]-pub fn is_module_terminally_unavailable(id: &str) -> bool {- let Some(record) = crate::modules::registry::find(id) else {- return true;- };- let Some(Ok(runtime)) = RUNTIME.get() else {- return false;- };- runtime- .host()- .list()- .into_iter()- .find(|module| {- module.manifest.bus_name.as_str() == record.bus_name- && module.manifest.object_path.as_str() == record.object_path- })- .is_some_and(|module| {- matches!(- module.state,- tinybus::module::ModuleState::Rejected { .. }- | tinybus::module::ModuleState::Unresolved { .. }- | tinybus::module::ModuleState::Faulted { .. }- | tinybus::module::ModuleState::Failed { .. }- | tinybus::module::ModuleState::Stopped- | tinybus::module::ModuleState::Disabled- )- })-}-#[cfg(test)]#[path = "runtime_tests.rs"]mod tests;diff --git a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs b/crates/openhuman-core/src/skills/bundled/flow_authoring.rsindex ff945ed710..5f27baab89 100644--- a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs+++ b/crates/openhuman-core/src/skills/bundled/flow_authoring.rs@@ -79,11 +79,7 @@ fn schedule_prewarm_operation(return false;}let state = crate::modules::ops::state_of(crate::modules::tinyflows::MODULE_ID);- if state == crate::modules::types::ModuleState::Failed- || crate::modules::runtime::is_module_terminally_unavailable(- crate::modules::tinyflows::MODULE_ID,- )- {+ if state == crate::modules::types::ModuleState::Failed {return false;}