From cbecd72e976a59e4c4b8277086abaa59ab3dc510 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 23:34:54 -0700 Subject: [PATCH] fix(setup): tolerate feature dicts without an stt entry in the STT status line Tests (and any older cached NousSubscriptionFeatures) construct the features dict without an 'stt' key; the .stt property raises KeyError. Use features.get('stt') instead. --- hermes_cli/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hermes_cli/setup.py b/hermes_cli/setup.py index fe3cc8c917a2..c5da48c7c32c 100644 --- a/hermes_cli/setup.py +++ b/hermes_cli/setup.py @@ -549,7 +549,8 @@ def _print_setup_summary(config: dict, hermes_home): # STT — show configured provider stt_provider = cfg_get(config, "stt", "provider", default="local") or "local" - if getattr(subscription_features, "stt", None) and subscription_features.stt.managed_by_nous: + _stt_feature = subscription_features.features.get("stt") + if _stt_feature is not None and _stt_feature.managed_by_nous: tool_status.append(("Speech-to-Text (OpenAI via Nous subscription)", True, None)) elif stt_provider == "openai" and ( get_env_value("VOICE_TOOLS_OPENAI_KEY") or get_env_value("OPENAI_API_KEY")