Description
Summary
When using OpenCode with Kimi K2.6, tool calls fail with:
[Moonshot AI] thinking is enabled but reasoning_content is missing in assistant tool call message at index N
Environment
- OpenCode: latest
- Provider: Moonshot AI / Kimi K2.6
- Model: kimi-k2.6
- Thinking mode: enabled
- Tool calls: enabled
Steps to reproduce
- Use Kimi K2.6 with thinking enabled.
- Ask the agent to perform a task that requires tool calls.
- After the first assistant/tool-call roundtrip, the next request fails.
Expected behavior
OpenCode should preserve and resend reasoning_content in assistant messages that contain tool calls.
Actual behavior
Moonshot rejects the request because reasoning_content is missing from the assistant tool call message.
Notes
This appears to happen specifically with Kimi K2.6 and tool calling.
The issue seems related to reasoning-content preservation across the tool-call roundtrip.
Plugins
Warp
OpenCode version
1.15.11
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Ubuntu 22.04
Terminal
Warp
Description
Summary
When using OpenCode with Kimi K2.6, tool calls fail with:
[Moonshot AI] thinking is enabled but reasoning_content is missing in assistant tool call message at index NEnvironment
Steps to reproduce
Expected behavior
OpenCode should preserve and resend
reasoning_contentin assistant messages that contain tool calls.Actual behavior
Moonshot rejects the request because
reasoning_contentis missing from the assistant tool call message.Notes
This appears to happen specifically with Kimi K2.6 and tool calling.
The issue seems related to reasoning-content preservation across the tool-call roundtrip.
Plugins
Warp
OpenCode version
1.15.11
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Ubuntu 22.04
Terminal
Warp