Skip to content

opencode: Model updates - #59236

Merged
yeskunall merged 7 commits into
mainfrom
fix-issue-59225-5fae53c5f956f165
Jun 22, 2026
Merged

opencode: Model updates#59236
yeskunall merged 7 commits into
mainfrom
fix-issue-59225-5fae53c5f956f165

Conversation

@yeskunall

@yeskunall yeskunall commented Jun 13, 2026

Copy link
Copy Markdown
Member

Fresh new updates from OpenCode dropped recently.

Closes #59225.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content adheres to Zed's UI standards (UX/UI and icon guidelines)
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • Added GLM 5.2 + Kimi K2.7 Code (OpenCode Go) and DeepSeek V4 Pro (OpenCode Zen); removed/restricted models deprecated upstream (MiniMax M3 Free removed; GLM 5, Kimi K2.5, MiniMax M2.5 now Zen-only)

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 13, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 13, 2026
@Vlaaaaaaad

Vlaaaaaaad commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Also:

Welcome to the chaos that is updating the OpenCode model list 😅 I'll create an issue later today next week to track implementing OpenCode model auto-discovery and why that's not possible yet (well, it is possible but the data is incomplete).

Comment thread crates/opencode/src/opencode.rs Outdated
@AlexKovynev

Copy link
Copy Markdown

@yeskunall glm5.2 here also for opencode go

@yeskunall

Copy link
Copy Markdown
Member Author

@AlexKovynev thanks for the heads up. I’m going to change this PR to draft and probably pool the other updates into this too, then move it out of drafts.

@yeskunall
yeskunall marked this pull request as draft June 18, 2026 12:37

pub fn default_go() -> Self {
Self::KimiK2_5
Self::KimiK2_6

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because Kimi K2.5 and MiniMax M2.5 were the Go defaults, those were repointed off the deprecated models.

| Self::Glm5_1
Self::Glm5_1
| Self::KimiK2_6
| Self::KimiK2_5

@yeskunall yeskunall Jun 19, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

MiniMaxM2_7,
#[serde(rename = "minimax-m3")]
MiniMaxM3,
#[serde(rename = "minimax-m3-free")]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

pub fn available_subscriptions(&self) -> &'static [OpenCodeSubscription] {
match self {
// Models available in both Zen and Go
Self::Glm5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Self::Glm5_1
| Self::KimiK2_6
| Self::KimiK2_5
| Self::MiniMaxM2_5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

| Self::KimiK2_5
| Self::MiniMaxM2_5
| Self::MiniMaxM2_7
| Self::DeepSeekV4Pro

@yeskunall yeskunall Jun 19, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added in OpenCode Zen as well: anomalyco/models.dev@57caaf8.

@yeskunall yeskunall changed the title opencode: Add Kimi K2.7 Code opencode: Model updates Jun 19, 2026
@yeskunall
yeskunall marked this pull request as ready for review June 19, 2026 18:08
@yeskunall

Copy link
Copy Markdown
Member Author

@Vlaaaaaaad wanna take another pass, since you already took one look at it?

@AlexKovynev

Copy link
Copy Markdown

@yeskunall look like @Vlaaaaaaad not with us :) Will be good to merge. Very want that both models :)

@Vlaaaaaaad

Copy link
Copy Markdown
Contributor

@yeskunall sorry, Fridays are days I actually do work so I was unavailable and this weekend I have other engagements. I'll review this by Monday EOD, assuming my schedule does not get obliterated in the meantime.
As an aside, over the past two weeks a bunch of enhancements were added to models.dev so I also re-validated and re-tested the idea of implementing OpenCode model auto-discovery in Zed aaaaaand that is, finally, a viable idea! There might still be some gaps (last I checked, reasoning levels were incomplete and the API mapping might've had a few weird matches) but it looked like there were no critical blockers anymore 🎉 I have a proof-of-concept implementation done already and I should finish properly testing and validating it sometime next week, after which I'll open up a PR.

@AlexKovynev for immediate access to models, folks can define custom OpenCode models 🙂 I agree it's not an ideal experience tho!

@AlexKovynev

AlexKovynev commented Jun 20, 2026

Copy link
Copy Markdown

@Vlaaaaaaad oh autodiscovery it great if it possible. Extensions for VS Code do the same. Anyway will be good merge that don't have anything about new models then nothing.

@yeskunall

Copy link
Copy Markdown
Member Author

@yeskunall sorry, Fridays are days I actually do work so I was unavailable and this weekend I have other engagements. I'll review this by Monday EOD, assuming my schedule does not get obliterated in the meantime. As an aside, over the past two weeks a bunch of enhancements were added to models.dev so I also re-validated and re-tested the idea of implementing OpenCode model auto-discovery in Zed aaaaaand that is, finally, a viable idea! There might still be some gaps (last I checked, reasoning levels were incomplete and the API mapping might've had a few weird matches) but it looked like there were no critical blockers anymore 🎉 I have a proof-of-concept implementation done already and I should finish properly testing and validating it sometime next week, after which I'll open up a PR.

@Vlaaaaaaad that sounds interesting. I’ll ping someone internally to get this merged, no worries.

@Vlaaaaaaad Vlaaaaaaad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me! I didn't compile and test the code, but I reviewed the model configurations and they match the data on models.dev and the data from the OpenCode docs.

@yeskunall
yeskunall added this pull request to the merge queue Jun 22, 2026
Merged via the queue into main with commit 8f438e6 Jun 22, 2026
34 checks passed
@yeskunall
yeskunall deleted the fix-issue-59225-5fae53c5f956f165 branch June 22, 2026 18:16
saranblock3 pushed a commit to saranblock3/zed that referenced this pull request Jun 23, 2026
Fresh new updates from OpenCode dropped recently.

Closes zed-industries#59225.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- Added GLM 5.2 + Kimi K2.7 Code (OpenCode Go) and DeepSeek V4 Pro
(OpenCode Zen); removed/restricted models deprecated upstream (MiniMax
M3 Free removed; GLM 5, Kimi K2.5, MiniMax M2.5 now Zen-only)
weihuoya pushed a commit to weihuoya/zed that referenced this pull request Jun 25, 2026
Fresh new updates from OpenCode dropped recently.

Closes zed-industries#59225.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- Added GLM 5.2 + Kimi K2.7 Code (OpenCode Go) and DeepSeek V4 Pro
(OpenCode Zen); removed/restricted models deprecated upstream (MiniMax
M3 Free removed; GLM 5, Kimi K2.5, MiniMax M2.5 now Zen-only)
@Vlaaaaaaad Vlaaaaaaad mentioned this pull request Jul 3, 2026
5 tasks
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Fresh new updates from OpenCode dropped recently.

Closes zed-industries#59225.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- Added GLM 5.2 + Kimi K2.7 Code (OpenCode Go) and DeepSeek V4 Pro
(OpenCode Zen); removed/restricted models deprecated upstream (MiniMax
M3 Free removed; GLM 5, Kimi K2.5, MiniMax M2.5 now Zen-only)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode go Kimi 2.7 and GLM 5.2 missing

4 participants