Skip to content

refactor(lmstudio): remove unreachable catalog merge - #130689

Merged
steipete merged 1 commit into
mainfrom
codex/lmstudio-discovery-cleanup-r10
Aug 27, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/lmstudio-discovery-cleanup-r10

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Related: #130204

What Problem This Solves

LM Studio catalog discovery still carried a second model-selection path whose merge and deduplication branches could never run. This maintainer-requested cleanup removes misleading policy from a provider boundary that already selects either explicitly configured models or the discovered catalog.

Why This Change Was Made

Use the selected provider's model array directly and delete the private merge helper. Nonempty explicit models already bypass live discovery; otherwise the helper always returned the discovered array unchanged. The same explicit-model short circuit exists in stable v2026.7.1, and #130204 preserved it while consolidating provider assembly.

This is an AI-assisted, behavior-neutral change entirely inside the LM Studio plugin: production +1/-33, net -32; tests unchanged. It adds no abstraction and changes no public API, configuration, authentication policy, reasoning metadata, or storage behavior.

User Impact

No user-visible behavior changes. Explicit model order, duplicate rows, array identity, API selection, authentication/header precedence, empty-catalog handling, and live discovery remain unchanged.

Evidence

Validated source head: 45cd46f230afc0eb8ea7db4d44fcac4134ffb96b (baseline 3255882803c78de5103d2d37f7698add84f34c5d). The LM Studio owner modules are unchanged on the newer inspected origin/main at 71d4a8c3e305c623aa3ffe92696eec18f116cfc6.

  • The unchanged setup, registration, and model-discovery suites passed 133 tests across 3 files before and after the change: node scripts/run-vitest.mjs extensions/lmstudio/src/setup.test.ts extensions/lmstudio/index.test.ts extensions/lmstudio/src/models.test.ts, with one worker and distinct test caches.
  • Read-only live proof called the actual public discoverLmstudioProvider entry point against LM Studio 0.4.21+2. Before and after returned identical full provider JSON for 13 LLMs. Each run made one model-list GET; explicit configuration retained the original array, including duplicate rows and its Responses API selection, without another network request. LM Studio and Ollama both remained at zero loaded models. No inference, model load, service restart, or user configuration write occurred.
  • Scoped formatter and the canonical lint wrapper with --type-aware --type-check, one thread, and the extensions tsconfig passed with zero diagnostics. The documented artifact-preparation skip avoided only unrelated global SDK preparation; type-aware checking remained enabled. Changed-lane dry run selected extension production and test checks; no full local changed-gate or whole-program typecheck result is claimed.
  • The required isolated Codex review through P2 reported no findings. Independent source and proof review covered the same final diff.
  • Exact-head CI passed on its first attempt, including all 51 jobs and the required CI gate. All 162 checks on the published head were terminal with no failures or pending checks.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 27, 2026 04:32
@steipete
steipete merged commit 1d568b1 into main Aug 27, 2026
168 checks passed
@steipete
steipete deleted the codex/lmstudio-discovery-cleanup-r10 branch August 27, 2026 04:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 27, 2026
…-retirement-v13

* origin/main: (243 commits)
  fix: preserve Gateway error reasons in text logs (#130645)
  refactor(video): deduplicate generation contracts (#130635)
  fix(agents): preserve direct-message sender identity (#124548)
  fix(agents): preserve silent reply after settled tools (#130675)
  fix(talk): preserve replacement speech when an old utterance is canceled (#130687)
  fix(browser): preserve literal names and formatter-owned snapshot refs (#130599)
  fix(auth): reset only the profile replaced by a successful login (#124014)
  fix: bind session creation to admitted Gateway (#130686)
  refactor(qa-lab): reuse model reference splitter (#130317)
  docs(gateway): clarify independent HTTP endpoint switches (#130690)
  fix(ui): Control UI smooth scrolling ignores the reduced-motion preference (#130428)
  refactor(lmstudio): remove unreachable catalog merge (#130689)
  fix(crabbox): restore cloud machine CPU and RAM (#130684)
  fix(secrets): compare proxy bearer tokens directly (#127054)
  fix(matrix): show recovery key availability in text status (#128051)
  fix(ios): restore approval settings navigation and remove duplicate shell state (#130651)
  refactor(agents): use fixed tool-loop defaults directly (#130681)
  refactor(qa-lab): share process tree metric reader (#130419)
  refactor(models): simplify prepared owner access (#130683)
  fix(parallels): main install and update smoke cannot complete (#130658)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant