Skip to content

opencode: Ensure non-empty reasoning content for interleaving#56182

Closed
raphaelluethy wants to merge 4 commits into
zed-industries:mainfrom
raphaelluethy:fix/opencode-kimi-fix
Closed

opencode: Ensure non-empty reasoning content for interleaving#56182
raphaelluethy wants to merge 4 commits into
zed-industries:mainfrom
raphaelluethy:fix/opencode-kimi-fix

Conversation

@raphaelluethy

@raphaelluethy raphaelluethy commented May 8, 2026

Copy link
Copy Markdown
Contributor

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • [ ] The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior (is this something desired as this would need a proper integration test with the opencode go api)
  • Performance impact has been considered and is acceptable

Closes #51743

I open this PR as an alternative to adding the fix in the global openai provider, as discussed in #55085
, as this seems to be an issue with the provider routing in opencode.

Release Notes:

  • Fixed the issue where kimi models in opencode go would fail due to reasoning content being empty

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 8, 2026
@maxdeviant maxdeviant changed the title feat(opencode): Ensure non-empty reasoning content for interleaving opencode: Ensure non-empty reasoning content for interleaving May 8, 2026
@ChristopherBiscardi ChristopherBiscardi added area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features area:ai/opencode OpenCode integration labels May 8, 2026
@infused-kim

Copy link
Copy Markdown

Thank you for this PR! I tried it and it's working perfectly now with OpenCode Go Kimi 2.6 and Deepseek v4 pro.

@raphaelluethy

Copy link
Copy Markdown
Contributor Author

They seemed to have updated the routing, I dont get the error anymore. I will therefore close the pr for now and will re-open it if needed.

@Vlaaaaaaad

Copy link
Copy Markdown
Contributor

I can confirm Kimi K2.6 through OpenCode Go now works without any issues 🎉 Thank you for letting us know @raphaelluethy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai/opencode OpenCode integration area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kimi k2.5 error "thinking is enabled but reasoning_content is missing in assistant tool call message"

5 participants