v0.50.273 — LM Studio provider env-var mapping
Fixed (1 PR)
LM Studio shows in Settings → Providers when configured (#1498, partial fix for #1420; reporters @chwps and @AdoneyGalvan)
After running the onboarding wizard with LM Studio selected, users saw the provider in the model picker and could chat normally, but Settings → Providers showed no LM Studio entry — or marked it as has_key=False / configurable=False even when LMSTUDIO_API_KEY was already in ~/.hermes/.env from the wizard. There was no UI surface to add or update the key.
Root cause: the _PROVIDER_ENV_VAR map in api/providers.py was missing an lmstudio: "LMSTUDIO_API_KEY" entry. That dict drives both env-var-based key detection in _provider_has_key() AND the configurable flag in get_providers() — without the entry, both checks fell through to "no key" and "no UI surface."
Fix: add the single mapping. Same bug shape as #1410 (Ollama Cloud / local Ollama env-var collision), opposite resolution: LMSTUDIO_API_KEY is not shared with any other provider's runtime, so the mapping is safe to add. Backed by 5 regression tests including a sibling-collision defense, mutation-verified.
Verified live:
before fix: lmstudio.has_key=False, configurable=False, key_source='none'
after fix: lmstudio.has_key=True, configurable=True, key_source='env_file'
Scope discipline
Issue #1420 surfaces a sibling bug — the onboarding wizard never probes the configured <base_url>/v1/models endpoint before persisting (accepts unreachable URLs silently, with no model-list dropdown population). That bug is filed as #1499 and is not addressed by this release; it warrants its own design pass for timeout / error-handling / UX feedback.
Notes
- 3874 → 3879 tests passing (+5 from the issue #1420 regression suite).
- Independent review by
nesquenaflagged a pre-existing cross-tool env-var-name divergence: webui usesLMSTUDIO_API_KEY, the agent CLI runtime usesLM_API_KEY. Masked in practice by the agent'sLMSTUDIO_NOAUTH_PLACEHOLDERfor keyless local installs. A follow-up issue is being filed. - Single-PR release lane (no stage branch), all CI green on the docs-stamp commit before merge.
Full Changelog: v0.50.272...v0.50.273