Bad request error #9338

Closed
opened 2026-02-16 18:12:13 -05:00 by yindo · 2 comments
Owner

Originally created by @lcwecker on GitHub (Feb 14, 2026).

Originally assigned to: @fwang on GitHub.

Description

1、opencode version 1.2.1
2、use opencode zen kimi 2.5 free
3、context:
Thinking: 我找到了一些关于 Transformers 的文档,但没有找到 Agents 的具体配置文档。让我继续搜索,特别是关于 ImageAgent 的部分。
◈ Exa Web Search "musistudio claude-code-router Agents configuration options model provider"
◈ Exa Web Search "claude-code-router source code Agents image configuration typescript"
% WebFetch https://musistudio.github.io/claude-code-router/docs/server/advanced/agents
Error: Request failed with status code: 404
⚙ grep_app_searchGitHub
Tool execution aborted
Thinking: 好的,看起来网页文档有 404 问题,但我从搜索结果中看到了一些有用的信息。让我继续搜索关于 Agents 的具体配置信息。从搜索结果的 snippet 中,我看到了一个 "Agent System" 的提及。
让我尝试获取更多关于 Agents 配置的信息。

Find ccr type definitions and config files

$ find ~/.bun/install/global/node_modules/@musistudio/claude-code-router -name ".d.ts" -o -name ".json" 2>/dev/null | head -20
/home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/tsconfig.base.json
/home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/package.json
/home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/tsconfig.json
Bad Request: {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{"error":{"message":"thinking is enabled but reasoning_content is missing in assistant tool call message at index 120","type":"invalid_request_error"}}","provider_name":"Moonshot AI","is_byok":true}},"user_id":"user_2z4xm5LomaIHfsnVqMhFsWrVrGY"}data: {"choices":[],"cost":"0"

Plugins

"plugin": [
"oh-my-opencode@latest",
"@tarquinen/opencode-dcp@latest",
"opencode-browser@latest",
"opencode-pty@latest",
"cc-safety-net@latest",
"opencode-wakatime@latest",
"opencode-mem@latest"
],

OpenCode version

1.2.1

Steps to reproduce

It seems to be sporadic. It happens after sevral failed tool calls,see details in my description.

Screenshot and/or share link

No response

Operating System

Linux, Ubuntu 25.10 on VMware

Terminal

powershell ssh linux

Originally created by @lcwecker on GitHub (Feb 14, 2026). Originally assigned to: @fwang on GitHub. ### Description 1、opencode version 1.2.1 2、use opencode zen kimi 2.5 free 3、context: Thinking: 我找到了一些关于 Transformers 的文档,但没有找到 Agents 的具体配置文档。让我继续搜索,特别是关于 ImageAgent 的部分。 ◈ Exa Web Search "musistudio claude-code-router Agents configuration options model provider" ◈ Exa Web Search "claude-code-router source code Agents image configuration typescript" % WebFetch https://musistudio.github.io/claude-code-router/docs/server/advanced/agents Error: Request failed with status code: 404 ⚙ grep_app_searchGitHub Tool execution aborted Thinking: 好的,看起来网页文档有 404 问题,但我从搜索结果中看到了一些有用的信息。让我继续搜索关于 Agents 的具体配置信息。从搜索结果的 snippet 中,我看到了一个 "Agent System" 的提及。 让我尝试获取更多关于 Agents 配置的信息。 # Find ccr type definitions and config files $ find ~/.bun/install/global/node_modules/@musistudio/claude-code-router -name "*.d.ts" -o -name "*.json" 2>/dev/null | head -20 /home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/tsconfig.base.json /home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/package.json /home/raylan/.bun/install/global/node_modules/@musistudio/claude-code-router/tsconfig.json Bad Request: {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{\"error\":{\"message\":\"thinking is enabled but reasoning_content is missing in assistant tool call message at index 120\",\"type\":\"invalid_request_error\"}}","provider_name":"Moonshot AI","is_byok":true}},"user_id":"user_2z4xm5LomaIHfsnVqMhFsWrVrGY"}data: {"choices":[],"cost":"0" ### Plugins "plugin": [ "oh-my-opencode@latest", "@tarquinen/opencode-dcp@latest", "opencode-browser@latest", "opencode-pty@latest", "cc-safety-net@latest", "opencode-wakatime@latest", "opencode-mem@latest" ], ### OpenCode version 1.2.1 ### Steps to reproduce It seems to be sporadic. It happens after sevral failed tool calls,see details in my description. ### Screenshot and/or share link _No response_ ### Operating System Linux, Ubuntu 25.10 on VMware ### Terminal powershell ssh linux
yindo added the bugzenneeds:compliance labels 2026-02-16 18:12:13 -05:00
yindo closed this issue 2026-02-16 18:12:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • The Description field contains a raw debug log/transcript dump rather than a clear problem statement. Please summarize what happened in your own words.
  • The actual error message is buried in the logs: "thinking is enabled but reasoning_content is missing in assistant tool call message at index 120". Please provide a clear, concise description of the issue.
  • Required: Steps to reproduce - currently empty. Please explain how to reproduce this error.
  • Required: System information is missing (Operating System and Terminal fields are empty with "No response"). Please provide your OS, terminal, and OpenCode version.
  • Please simplify the Description to focus on the problem, not the full debug transcript.

Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 14, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - The Description field contains a raw debug log/transcript dump rather than a clear problem statement. Please summarize what happened in your own words. - The actual error message is buried in the logs: `"thinking is enabled but reasoning_content is missing in assistant tool call message at index 120"`. Please provide a clear, concise description of the issue. - **Required**: Steps to reproduce - currently empty. Please explain how to reproduce this error. - **Required**: System information is missing (Operating System and Terminal fields are empty with "_No response_"). Please provide your OS, terminal, and OpenCode version. - Please simplify the Description to focus on the problem, not the full debug transcript. Please edit this issue to address the above within **2 hours**, or it will be automatically closed. --- This issue might be a duplicate of existing issues. Please check: - #13130: [reasoning_content field handling in OpenAI-compatible messages](../issues/13130) - #13286: [Claude Opus thinking block modification errors](../issues/13286) - #13002: [reasoning_content not stripped from history for Kimi-K2.5](../issues/13002) - #12879: [Bad request errors with Kimi K2.5 on Azure Foundry](../issues/12879) If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9338