Skip to content

Body discarded: Anthropic protocol conversion Claude Code

Quick fix

Upgrade to v3.20.3 or a v4 version containing the fix; the converter ignores trailing empty reasoning_content.

Error output
index:0 thinking → index:1 text → index:2 thinking(空)
English translation

index:0 thinking → index:1 text → index:2 thinking (empty)

During Anthropic protocol conversion, when the upstream sends empty reasoning_content after a text block, the converter incorrectly opens a new thinking block, creating an invalid thinking → text → thinking order; Claude Code therefore discards the entire body. The maintainer confirmed that v3.20.3 fixed this issue and that all v4 versions include the fix.

  1. Upgrade cc-switch to v3.20.3 or a v4 version containing the fix; the version link provided by the maintainer is v4.0.6.

ToolClaude Code
Version3.20.0(修复版本:v3.20.3;v4 各版本包含修复)
PlatformsWindows
Which version fixes this issue?
The maintainer said v3.20.3 fixes it, all v4 versions include the fix, and recommended upgrading to the latest version.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.