An engineer is building a real-time coding assistant using Claude Sonnet 5.5 with adaptive thinking enabled. When consuming the stream, they notice that the very first events do not contain any visible text for the user. What is the most likely cause of this behavior in the streaming protocol?
Current models use adaptive thinking, and these thinking blocks are the first part of the model's generated content. In a streaming context, the API sends these blocks first. Even if the raw thinking is not fully exposed to the end user, the stream must account for these tokens and the time taken to generate them.
Why this answer
On current models like Sonnet 5.5, adaptive thinking is enabled by default. When the model decides to think, it generates thinking blocks before any text or tool blocks. In a stream, these thinking blocks are sent as separate events.
If the model is performing complex reasoning, the initial `content_block_delta` events will correspond to the thinking process. Since raw thinking text is often omitted or summarized in the final output, the stream might appear 'silent' or show metadata-only blocks before the first text block starts.
Exam trap
Developers may mistake the thinking phase for a network delay or a failure of the model to generate a response.