fix(models): resolve provider-qualified aliases in session switches#75198
fix(models): resolve provider-qualified aliases in session switches#75198sahilsatralkar wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open. The PR targets a valid sessions.patch alias bug, but it is not merge-ready because the new provider-qualified lookup still depends on a single global alias entry, real behavior proof is only test-based, and the branch is currently conflicting. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main routes sessions.patch model updates through resolveAllowedModelRef, and the shared resolver does not canonicalize provider/Alias before provider/model parsing while the linked issue supplies matching invalid-model logs. Is this the best way to solve the issue? No as submitted. Shared server-side canonicalization is the right layer, but the implementation needs provider-scoped duplicate-safe alias matching, a clean rebase without the changelog edit, and real setup proof before merge. Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff is limited to model resolution logic, tests, and a changelog entry. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 6cb82eaab865. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Describe the problem and fix in 2–5 bullets:
If this PR fixes a plugin beta-release blocker, title it
fix(<plugin-id>): beta blocker - <summary>and link the matchingBeta blocker: <plugin-name> - <summary>issue labeledbeta-blocker. Contributors cannot label PRs, so the title is the PR-side signal for maintainers and automation.lmstudio-moe/MoEthroughsessions.patch, which let the provider receiveMoEinstead of the canonical local model id.provider/Aliasthrough the configured alias index when the provider matches the alias target, before existing allowlist/catalog validation and persistence.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
For bug fixes or regressions, explain why this happened, not just what changed. Otherwise write
N/A. If the cause is unclear, writeUnknown.resolveModelRefFromStringresolved aliases only when the entire raw model string matched a configured alias. BareMoEresolved, butlmstudio-moe/MoEwas parsed as providerlmstudio-moeand modelMoE.provider/Alias, then send that value throughsessions.patch.Regression Test Plan (if applicable)
For bug fixes or regressions, name the smallest reliable test coverage that should catch this. Otherwise write
N/A.src/agents/model-selection.test.ts,src/gateway/sessions- patch.test.tslmstudio-moe/MoEresolves and persists aslmstudio-moe/ qwen3.6-35b-a3bwhenMoEis configured as that model’s alias.User-visible / Behavior Changes
Users can switch to configured aliased local/provider models from Control UI/TUI without the provider receiving the display alias as the model id.
Diagram (if applicable)
For UI changes or non-trivial logic flows, include a small ASCII diagram reviewers can scan quickly. Otherwise write
N/A.Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
chat-model-ref.test.ts ui/src/ui/chat-model-select-state.test.ts ui/src/ui/views/
chat.test.ts
Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.Built with Codex