Skip to content

feat: add model alias overrides - #1262

Merged
liruifengv merged 6 commits into
mainfrom
fix-effort
Jul 1, 2026
Merged

feat: add model alias overrides#1262
liruifengv merged 6 commits into
mainfrom
fix-effort

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

N/A

Problem

Provider catalog refreshes rewrite managed model metadata, so users had no stable way to keep manual model fields such as thinking effort levels across refreshes.

What changed

  • Added [models."<alias>".overrides] as a user-owned overlay for model aliases.
  • Resolved effective model metadata at runtime so overrides win for the TUI, protocol catalog, provider config, thinking defaults, and ACP catalog.
  • Updated provider refresh merge logic to preserve overrides while still refreshing remote-owned fields.
  • Updated bilingual configuration docs and added a changeset.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Verification

  • pnpm test
  • pnpm run typecheck

Preserve user model overrides across provider catalog refreshes and resolve effective model metadata for runtime, TUI, protocol, and ACP consumers.
@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 413f428

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

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

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

commit: 413f428

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2515ec75b2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/components/dialogs/model-selector.ts
Comment thread packages/agent-core/src/agent/config/thinking.ts
Show overridden model display names in the footer, welcome panel, status output, and model switch confirmations.
Keep support_efforts authoritative when declared, but pass requested Kimi thinking effort through when the model does not declare support_efforts.
Use effective model metadata for /effort choices and for always_thinking clamping when resolving thinking effort.
@liruifengv
liruifengv merged commit c070fbe into main Jul 1, 2026
9 checks passed
@liruifengv
liruifengv deleted the fix-effort branch July 1, 2026 11:57
@github-actions github-actions Bot mentioned this pull request Jul 1, 2026
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