You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] DeepSeek reasoning_content not preserved across tool calls, causing HTTP 400 error #28945
opencode 调用 LSP 工具获取结果后,将结果发送给 DeepSeek API 进行下一轮处理
DeepSeek API 返回 400 错误,因为 reasoning_content 没有从上一轮响应传回
错误日志
RequestExecutor.execute: Provider request failed with HTTP 400:
{"error":{"message":"Error from provider (DeepSeek): The reasoning_content in the thinking mode must be passed back to the API.",
"type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
根因分析
DeepSeek 的 reasoning/thinking 模式会在 API 响应中返回 reasoning_content 字段。根据 DeepSeek 的 API 规范,多轮对话中必须将前一轮的 reasoning_content 原样传回,否则后续请求会被拒绝。
make sure that u have OPENCODE_EXPERIMENTAL_NATIVE_LLM=0, in some older versions OPENCODE_EXPERIMENTAL=1 would opt into the native llm experiment, which caused the issue that @arafays faced
If u update or opt back out of native llm w/ OPENCODE_EXPERIMENTAL_NATIVE_LLM (its opted out by default) then this should go away
yup and OP was as well. This is "fixed" because native llm is opted out even if u have OPENCODE_EXPERIMENTAL set now, but just in case u can always also set OPENCODE_EXPERIMENTAL_NATIVE_LLM=0 to opt out
I upgraded to v1.15.11 and this problem seems to have been fixed. Here are the environment variables I set before. @rekram1-node
export OPENCODE_DISABLE_CLAUDE_CODE=1
export OPENCODE_EXPERIMENTAL=1
export OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true
Activity
github-actions commentedon May 23, 2026
This issue might be a duplicate of existing issues. Please check:
reasoning_contentin the thinking mode must be passed back to the API. #24920: deepseek V4 flash/pro — reasoning_content not passed back after tool call interruptionarafays commentedon May 23, 2026
session.json
here is session export I saw @rekram1-node asking for it @StarpTech this is the latest session started today!
devcxl commentedon May 26, 2026
我同样也遇到了这个错误 版本 1.15.10
I have also encountered this error in version 1.15.10
devcxl commentedon May 27, 2026
已经两天了有人来解决下这个问题么?
--
It's been two days. Can anyone solve this problem?
@StarpTech
devcxl commentedon May 27, 2026
在我的opencode-go订阅中没有办法使用deepseek-v4-pro/flash这感觉真是太糟糕了。
It feels really bad that I don't have a way to use deepseek-v4-pro/flash with my opencode-go subscription.
rekram1-node commentedon May 29, 2026
make sure that u have
OPENCODE_EXPERIMENTAL_NATIVE_LLM=0, in some older versionsOPENCODE_EXPERIMENTAL=1would opt into the native llm experiment, which caused the issue that @arafays facedIf u update or opt back out of native llm w/ OPENCODE_EXPERIMENTAL_NATIVE_LLM (its opted out by default) then this should go away
rekram1-node commentedon May 29, 2026
@devcxl u were facing the same issue here too
rekram1-node commentedon May 29, 2026
yup and OP was as well. This is "fixed" because native llm is opted out even if u have
OPENCODE_EXPERIMENTALset now, but just in case u can always also setOPENCODE_EXPERIMENTAL_NATIVE_LLM=0to opt outdevcxl commentedon May 29, 2026
我升级了v1.15.11 这个问题似乎已经得到修复了 这是我之前设置的环境变量 @rekram1-node
export OPENCODE_DISABLE_CLAUDE_CODE=1
export OPENCODE_EXPERIMENTAL=1
export OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true
I upgraded to v1.15.11 and this problem seems to have been fixed. Here are the environment variables I set before. @rekram1-node
export OPENCODE_DISABLE_CLAUDE_CODE=1
export OPENCODE_EXPERIMENTAL=1
export OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true
devcxl commentedon May 29, 2026
应该就是这个 OPENCODE_EXPERIMENTAL=1 导致的问题
This should be the problem caused by OPENCODE_EXPERIMENTAL=1
devcxl commentedon May 29, 2026
@rekram1-node thanks for your work!