Skip to content

[Bug] Kimi K2.6 reasoning content leaks into main response instead of being rendered as thinking block #32800

Closed as not planned

Description

@stalmahov

Description:

When using Kimi K2.6 through the direct Moonshot AI provider, the model's reasoning content is not separated into a thinking/rationale block. Instead, it is streamed as part of the main assistant response, making it look like the model is "talking to itself" in the answer.

This does not happen with Kimi K2.7 under the same setup — reasoning is correctly handled there.

Environment:

  • OpenCode version: 1.17.7
  • Provider: Moonshot AI (direct, via /connect)
  • Model: Kimi K2.6
  • OS: Windows 11 + WSL
  • Terminal: WezTerm

Steps to reproduce:

  1. Run opencode.
  2. Connect Moonshot AI provider via /connect.
  3. Select Kimi K2.6 model via /models.
  4. Send any prompt.
  5. Observe that reasoning text appears inline in the assistant response rather than in a separate thinking block.

Expected behavior:

Reasoning should be rendered as a collapsible Thought: block (when /thinking is enabled) or hidden from the response entirely (when /thinking is disabled).

Actual behavior:

Reasoning text is mixed into the normal response text, as if it were part of the answer. The /thinking command has no effect on this behavior — the reasoning content is never recognized as a separate block.

Additional context:

Activity

  1. github-actions commented on Aug 18, 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