github nesquena/hermes-webui v0.50.273
v0.50.273 — LM Studio provider env-var mapping (#1420)

latest releases: v0.50.278, v0.50.277, v0.50.276...
8 hours ago

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 nesquena flagged a pre-existing cross-tool env-var-name divergence: webui uses LMSTUDIO_API_KEY, the agent CLI runtime uses LM_API_KEY. Masked in practice by the agent's LMSTUDIO_NOAUTH_PLACEHOLDER for 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

Don't miss a new hermes-webui release

NewReleases is sending notifications on new releases.