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.
This commit is contained in:
Teknium 2026-07-28 23:34:54 -07:00
parent 96bf65a6f7
commit cbecd72e97

View file

@ -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")