qwen-code/packages
tanzhenxin 762f603e9b
fix(core): inject reasoning_content on DeepSeek tool-call replays (#3729)
DeepSeek's thinking-mode API requires every prior assistant turn that
carried tool_calls to replay reasoning_content in subsequent requests,
or it returns HTTP 400 ("The reasoning_content in the thinking mode
must be passed back to the API"). The model can legitimately return a
tool round without any reasoning text — qwen-code then stored no
thought parts and rebuilt the next request with reasoning_content
absent, tripping the API's check.

The DeepSeek provider now normalizes outgoing assistant messages so
any turn carrying tool_calls always has reasoning_content set (empty
string when none was emitted). Other providers are unaffected.

Refs #3695
2026-04-29 16:28:29 +08:00
..
channels chore(release): bump version to 0.15.3 (#3708) 2026-04-28 21:04:52 +08:00
cli feat(cli): wire background shells into combined Background tasks dialog (#3720) 2026-04-29 16:06:36 +08:00
core fix(core): inject reasoning_content on DeepSeek tool-call replays (#3729) 2026-04-29 16:28:29 +08:00
sdk-java fix(sdk-java): pass custom env to CLI process (#3543) 2026-04-24 10:37:52 +08:00
sdk-python feat(SDK) Add Python SDK implementation for #3010 (#3494) 2026-04-25 07:02:58 +08:00
sdk-typescript chore(release): sdk-typescript v0.1.7 (#3688) 2026-04-28 14:59:13 +08:00
vscode-ide-companion chore(release): bump version to 0.15.3 (#3708) 2026-04-28 21:04:52 +08:00
web-templates chore(release): bump version to 0.15.3 (#3708) 2026-04-28 21:04:52 +08:00
webui chore(release): bump version to 0.15.3 (#3708) 2026-04-28 21:04:52 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00