[BUG] [VSCode Extension] Unsupported content type: redacted_thinking when using OpenRouter

Resolved 💬 3 comments Opened Apr 13, 2026 by alex29ua Closed May 23, 2026

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?

Bug Description

When using Claude Code VSCode extension with OpenRouter as the API provider,
the extension throws an error "Unsupported content type: redacted_thinking"
and the final text response is also lost (swallowed).

Environment

  • Client: Claude Code VSCode Extension
  • API Provider: OpenRouter (not direct Anthropic API)
  • Model: Models with Extended Thinking enabled (e.g. claude-sonnet-4-6)

Additional Notes

  • This has been reported multiple times, but all the Issues were auto-closed due to different reasons, never fixed.

Since both Claude and OperRouter kind of claim it should work (Claude can use API mode, OpenRouter has an article describing the setup), it would be nice to have it working without the need for some more external proxies in the middle.

What Should Happen?

  • Either render the thinking content, or silently skip it and display the final text response

Error Messages/Logs

- Extension throws: `Unsupported content type: redacted_thinking`
- Final text response is also lost because stream processing aborts on the unknown content type

Steps to Reproduce

  1. Configure Claude Code VSCode extension to use OpenRouter
  2. Use a model that returns redacted_thinking content blocks
  3. Send any message

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.101

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗