Skip to content

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

fix(voice): restore engine-deferral check in missing provider error

Steven Enamakel569dd098f193
diff --git a/crates/openhuman-core/src/voice/factory/helpers.rs b/crates/openhuman-core/src/voice/factory/helpers.rs
index 1952255ebe..938eccb639 100644
--- a/crates/openhuman-core/src/voice/factory/helpers.rs
+++ b/crates/openhuman-core/src/voice/factory/helpers.rs
@@ -97,7 +97,7 @@ pub fn effective_tts_provider(config: &Config) -> String {
/// it carries the shared unavailable sentinel the reporter filters on rather
/// than reading as a misconfigured slug.
fn missing_provider_error(slug: &str) -> anyhow::Error {
- if false {
+ if !slug.trim().is_empty() && defers_to_engine(slug) {
return anyhow::anyhow!(
"{} no '{slug}' speech provider is registered in this build",
crate::core::observability::BACKEND_UNAVAILABLE_PREFIX