Repository navigation
refactor(lmstudio): unify catalog discovery provider assembly - #130204
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 15:47
steipete
marked this pull request as draft
August 26, 2026 16:02
steipete
marked this pull request as ready for review
August 26, 2026 16:02
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
LM Studio catalog discovery maintained separate provider-construction and credential-resolution error paths for explicitly configured models and live-discovered models. Keeping those paths aligned made a stable, security-sensitive provider boundary harder to maintain.
Why This Change Was Made
Consolidate ordered provider-header and configured-key resolution into its existing fail-closed error boundary, then select either the explicit provider or live catalog before using one provider/auth materialization path. Explicit models still bypass network discovery and retain their original model array, explicit-only API default, property ordering, and normalized URL. Discovered providers retain their existing field precedence, empty-catalog behavior, quiet mode, Authorization-header precedence, SecretRef handling, and authentication-marker semantics.
This is an owner-local refactor of
extensions/lmstudio/src/setup.ts: 20 production lines added, 42 removed, net -22. No test, public API, configuration, storage, or security-policy changes.User Impact
No user-visible behavior changes. Existing installed LM Studio configurations, credentials, configured models, and automatic discovery continue to work identically.
Evidence
--type-aware --type-checkand the extensions tsconfig: clean, zero diagnostics. DocumentedOPENCLAW_OXLINT_SKIP_PREPARE=1skipped only unrelated global SDK-artifact preparation; all type-aware policy remained enabled.