[BUG] Mismatched content block type content_block_delta text
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Getting a "Mismatched content block type content_block_delta text" error in the VS Code extension. The error occurs during streaming responses, causing tool calls to fail with "Stream closed" errors.
Environment:
OS: macOS 26.6.1 (Build 25G76)
VS Code: 1.132.0 (arm64)
Claude Code Extension: 2.1.227
Expected Behavior:
Tool calls should complete successfully and responses should stream without errors.
Actual Behavior:
Response stream breaks with "Mismatched content block type content_block_delta text" error. Tool permission requests fail with "AbortError: Stream closed" or "Tool permission stream closed before response received".
Additional Context:
Started happening: [FILL IN: today / after update / etc.]
Frequency: [FILL IN: every time / intermittent]
Network: [FILL IN: direct / VPN / corporate proxy]
What Should Happen?
Tool calls should complete successfully and responses should stream without errors.
Error Messages/Logs
Steps to Reproduce
Open Claude Code in VS Code extension
Send a message that triggers tool use (e.g., asking to run a bash command)
Error appears during response streaming
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.227
Platform
Other
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
<img width="433" height="137" alt="Image" src="https://github.com/user-attachments/assets/3edeb6d7-d148-4798-88af-b41144987426" />