Skip to content

feat: add LM Studio local runtime support - #886

Merged
Astro-Han merged 5 commits into
mainfrom
feat/lm-studio-provider-support
Jul 13, 2026
Merged

Astro-Han merged 5 commits into
mainfrom
feat/lm-studio-provider-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add LM Studio as a first-class no-auth local provider with the default http://localhost:1234/v1 endpoint and exact local model discovery.
  • Carry the stable provider ID and exact model IDs through Desktop, CLI, headless, storage, and runtime, including a deterministic two-stage tool-call loop without secrets.
  • Vendor the traceable upstream LM Studio SVG and render it through the shared currentColor mask and third-party notice seams.

Why

LM Studio exposes an OpenAI-compatible local server and /v1/models, but Maka did not offer it as a persisted provider or discover its loaded local models. This completes the LM Studio slice of the provider expansion while keeping the registry as the single source of truth and preserving the default no-auth contract.

Refs #860

Scope

This PR adds only LM Studio support. It does not add another provider, implement Phase 7, or introduce an LM Studio-specific runtime fork where the existing OpenAI-compatible seam applies.

Verification

  • npm run typecheck — passed across all workspaces.
  • npm test — passed across all workspaces; Desktop passed 2409/2409 on the final main baseline.
  • npm run e2e -- --workers=1 from apps/desktop — passed 17/17 with the fake backend, including the no-auth LM Studio catalog/detail journey and currentColor mask contract.
  • npm run check:stale — passed (dist is fresh).
  • Independent reviewer subagent review — passed with no P0–P3 findings after fixes and final rebase.
  • Static screenshots are not applicable: the provider mark is locked to the complete upstream SVG SHA-256 and catalog/detail rendering is verified through computed mask/currentColor assertions in deterministic E2E.

Impact

Users can configure a local LM Studio server without credentials, discover loaded models from /v1/models, and retain exact model IDs across Desktop, CLI, and headless/runtime paths. No migration is required; existing provider IDs and ordering remain stable, and no secrets are introduced.

Reviewer notes

LM Studio SVG provenance: lobehub/lobe-icons, @lobehub/[email protected], commit e4302041fbb3039608d25f9f618bd462783b875e, path packages/static-svg/icons/lmstudio.svg, MIT, complete SHA-256 4a575e8382b52ce742ac5d21d361a7d2a08cea7c12390ee1bbb755ef7d3cc25b. The shared THIRD_PARTY_LICENSES.txt contains the single Lobe Icons license body and per-asset inventory for xAI, Ollama, and LM Studio.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable

@Astro-Han
Astro-Han merged commit 9750ff5 into main Jul 13, 2026
5 of 6 checks passed
@Astro-Han
Astro-Han deleted the feat/lm-studio-provider-support branch July 13, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant