Skip to content

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

Closed as not planned

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

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is specific to a different scenario or version, please add details clarifying how it differs from the above.

  2. rekram1-node commented on May 27, 2026

    @rekram1-node
    Contributor

    can u send the session?

    opencode export > session.json

    do not run /export

  3. MrCh1ppy commented on Jun 2, 2026

    @MrCh1ppy

    I’ve seen at least five issues regarding the same problem, and there are quite a few pull requests as well. It’s strange that these PRs still haven’t been reviewed.

  4. rekram1-node commented on Jun 2, 2026

    @rekram1-node
    Contributor

    @MrCh1ppy thats because vast majority of PRs:

    1. dont understand issue
    2. are ai generated while not understanding issue (we like ai generated but if u dont understand it then i dont read it)
    3. dont fix issue
  5. MrCh1ppy commented on Jun 3, 2026

    @MrCh1ppy

    I understand that many PRs may not actually fix the issue.
    But #25011 seems to target the Moonshot/Kimi message-format problem and was closed by automated cleanup without review.
    So this still looks like a maintainer review/backlog problem, not only a PR quality problem.

  6. rekram1-node commented on Jun 3, 2026

    @rekram1-node
    Contributor

    That was my own PR haha and it's not a fix for this issue it's a separate one and I havent flushed it out yet

  7. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions