Skip to content

Deepseek-chat:options:thinking:type:enabled thinking tools bug #9397

Closed as not planned

Description

@ai-llt

Description

agent: {
deepseek-chat: {
"mode": "primary",
"model": "deepseek/deepseek-chat",
"options": {
"thinking": {
"type": "enabled"
}
}
}
}

→ Read opencode.json
Error: File not found: D:\Projects\LLM_Workspace\bear_party\opencode.json
Missing reasoning_content field in the assistant message at message index 2. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

$ find . -name "plans" -type d
FIND: Parameter format not correct
Missing reasoning_content field in the assistant message at message index 5. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

$ dir /b
Get-ChildItem: Cannot find path 'D:\b' because it does not exist.
Missing reasoning_content field in the assistant message at message index 8. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Above is the issue where the thinking parameter cannot be used and will result in an error in thinking mode. Please help me

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jan 19, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. tongsh6 commented on Mar 10, 2026

    @tongsh6

    I can reproduce the same class of bug in a slightly different setup: a custom local subagent using deepseek/deepseek-reasoner with tools enabled.

    Local agent file:

    ~/.config/opencode/agents/architect.md

    ---
    description: Read-only architecture review agent
    mode: subagent
    model: deepseek/deepseek-reasoner
    temperature: 0.1
    steps: 16
    tools:
      write: false
      edit: false
      bash: true
    ---

    Observed error:

    Missing reasoning_content field in the assistant message at message index 32.
    For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls
    

    So this does not seem limited to deepseek-chat with thinking.type=enabled; it also appears in custom subagent flows with deepseek-reasoner when tool calls are involved.

    Related issue with more detail: #8934.

  3. github-actions commented on Jul 6, 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