Skip to content

fix(desktop): prioritize Kimi subscription in model picker - #5260

Merged
liruifengv merged 1 commit into
mainfrom
feat/model-picker-recent-and-provider-order
Nov 23, 2026
Merged

liruifengv merged 1 commit into
mainfrom
feat/model-picker-recent-and-provider-order

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Desktop and web users who have both the Kimi Subscription and custom providers can see the subscription after custom providers in the full model picker. This PR makes the Kimi Subscription the first provider tab while preserving the existing order of every other provider.

No external issue is linked; this was requested as part of the model picker ordering cleanup.

Bug Reproduction Steps

  1. Configure at least one custom provider before the managed Kimi provider appears in the model catalog.
  2. Open the full model picker.
  3. Observe that provider tabs follow the model catalog's first-appearance order, so the Kimi Subscription may not be first.

Root Cause

The model picker derived provider tabs solely from each provider's first appearance in the model catalog. The managed subscription can be appended after existing model aliases, so catalog insertion order did not guarantee the intended product ordering. This is a presentation-layer fix; model catalog and provider APIs remain unchanged.

Code Changes

 provider IDs in catalog first-appearance order
-tabs = All + provider IDs
+provider IDs = Kimi Subscription (when present) + all other IDs in their original order
+tabs = All + ordered provider IDs
  • Keep All as the first tab.
  • Move managed:kimi-code to the first provider position when it exists.
  • Preserve first-appearance order for all remaining providers.
  • Leave the All model list and its starred-first ordering unchanged.
  • Add component-level coverage for catalogs with and without the managed subscription.
  • Add a kimi-code-app patch changeset.

Screenshots / Recordings

Not attached. This PR changes only the order of existing provider tabs and does not change layout, styling, or interaction. Browser/Electron visual verification was not run; the rendered tab order is covered by the component test below.

Behavior Changes and Affected Users

Behavior Before After Who relies on the old behavior Escape hatch
Full model picker provider tabs All, then providers in model-catalog first-appearance order All, then Kimi Subscription when present, then the remaining providers in their original order Desktop and web users with the managed subscription and one or more custom providers None needed; no provider is removed or disabled
Catalogs without the managed subscription Providers use first-appearance order Unchanged Desktop and web users without the managed subscription N/A
Model rows in the All tab Starred models first, with stable catalog order inside each group Unchanged Users who rely on starred-model ordering N/A

Affected modules and coverage:

  • packages/app-components/src/settings/ModelPicker.vue: provider-tab projection only.
  • packages/app-components/test/modelPicker.test.ts: verifies subscription-first ordering and unchanged ordering when the subscription is absent.
  • .changeset/tidy-models-kimi.md: records the desktop patch.
Validation
  • pnpm exec vitest run --reporter=agent packages/app-components/test/modelPicker.test.ts — 1 file, 2 tests passed.
  • pnpm --filter kimi-code-app run typecheck — passed.
  • pnpm lint — passed.
  • pnpm run check:duplication 6bdb7ead8cb5c5b5982ebd59c912ae36010bdfa3 — passed with no new clones.
  • git diff --check origin/main...HEAD — passed.
  • Browser/Electron visual verification — not run.
  • Windows-specific verification — not run; no platform-specific code changed.

Checklist

  • I have read the CONTRIBUTING document.
  • No external issue is required for this internal product change.
  • I have added tests that prove my feature works.
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR.
  • Ran gen-changesets skill and added the confirmed desktop patch changeset.
  • No user documentation update is needed for this small, self-contained tab-order change.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7d1289b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kimi-code-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:05:32.833597Z 7d1289b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@7d1289b
npx https://pkg.pr.new/@moonshot-ai/kimi-code@7d1289b

commit: 7d1289b

@liruifengv
liruifengv merged commit 0ab516e into main Nov 23, 2026
22 of 25 checks passed
@liruifengv
liruifengv deleted the feat/model-picker-recent-and-provider-order branch November 23, 2026 06:13
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 24, 2026
Mark MoonshotAI#5048, MoonshotAI#5068, MoonshotAI#5203 and MoonshotAI#5260 ported with executable grep probes and
evidence from the fork commits that carried them.
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.

2 participants