Skip to content

fix(catalog): preserve bundled model metadata#2178

Open
NarwhalChen wants to merge 1 commit into
MoonshotAI:mainfrom
NarwhalChen:fix/preserve-bundled-catalog-metadata
Open

fix(catalog): preserve bundled model metadata#2178
NarwhalChen wants to merge 1 commit into
MoonshotAI:mainfrom
NarwhalChen:fix/preserve-bundled-catalog-metadata

Conversation

@NarwhalChen

Copy link
Copy Markdown

Related Issue

Follow-up to #2015.

@RealKai42, could you take a look? This completes the release-snapshot side of the catalog metadata consumption added in #2015.

Problem

The release catalog generator prunes models.dev data through a model-field allowlist. The catalog consumer added support for reasoning_options, status, and per-model provider overrides in #2015, but the generator still removed those fields before embedding the snapshot. As a result, bundled catalogs could expose deprecated models, lose declared reasoning efforts, or resolve gateway models without their model-specific protocol and endpoint.

What changed

  • Preserve reasoning_options, status, and provider while generating the bundled catalog.
  • Make the pure catalog-pruning step importable without running the network/file-writing entrypoint.
  • Add a pinned raw models.dev fixture and compare production consumer output before and after pruning.
  • Guard the fixture itself by proving that removing each preserved field changes observable consumer output.

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.

@changeset-bot

changeset-bot Bot commented Jul 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 30f887f

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 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

@NarwhalChen

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 30f887f864

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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