Skip to content

[Kimi K2.6] reasoning_content is missing in assistant tool call messages #29619

@beeckrumi0000

Description

@beeckrumi0000

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

  1. Use Kimi K2.6 with thinking enabled.
  2. Ask the agent to perform a task that requires tool calls.
  3. 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

Image

Operating System

Ubuntu 22.04

Terminal

Warp

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions