Problem
When Claude Code responses contain thinking content blocks, the SDK fails to parse them and returns an AssistantMessage with empty content ({ "content": [] }).
Expected Behavior
The SDK should properly parse thinking content blocks and expose them through a ThinkingBlock type, allowing users to access both the thinking
content and signature fields.
Current Behavior
Claude Code responses with thinking blocks result in AssistantMessage with content: []
Problem
When Claude Code responses contain
thinkingcontent blocks, the SDK fails to parse them and returns anAssistantMessagewith empty content ({ "content": [] }).Expected Behavior
The SDK should properly parse
thinkingcontent blocks and expose them through aThinkingBlocktype, allowing users to access both the thinkingcontent and signature fields.
Current Behavior
Claude Code responses with
thinkingblocks result inAssistantMessagewithcontent: []