[BUG]

Resolved 💬 4 comments Opened Apr 16, 2026 by Ershivnandan Closed Apr 16, 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?

I am trying to access the claude opus model using AWS BEDROCK from my claude code extension in the VS CODE IDE but I am getting the following error.

 API Error: 400 messages.1.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is 
     enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and             
     `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable          
     `thinking`. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking  

I tried some troubleshoot methods e.g.

setting up the vs code settings.json

"claudeCode.preferredLocation": "panel",
"claudeCode.skipLogin": true,
"claudeCode.disableLoginPrompt": true,
"claudeCode.enableExtendedThinking": false,  // Set it to false so thinkign will not block the response
"claudeCode.selectedModel": "global.anthropic.claude-3-opus-20240229-v1:0",

and changing the model , but non of these solution worked. I have enabled ALL IAM permission's to access aws bedrock even asking to claude for where it is running is responding me properly.

shivnandansoni@Shivs-MacBook-Air-7 pilot-mobile % claude
╭─── Claude Code v2.1.110 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                    │ Tips for getting started                                          │
│                    Welcome back!                   │ Run /init to create a CLAUDE.md file with instructions for Claude │
│                                                    │ ───────────────────────────────────────────────────────────────── │
│                       ▐▛███▜▌                      │ Recent activity                                                   │
│                      ▝▜█████▛▘                     │ No recent activity                                                │
│                        ▘▘ ▝▝                       │                                                                   │
│                                                    │                                                                   │
│            Sonnet 4 · API Usage Billing            │                                                                   │
│  ~/Developer/Leher/pilot-mobile-copy/pilot-mobile  │                                                                   │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

❯ hi are you running on bedrock ?                                                                                                     
                                  
⏺ Based on the model ID I can see in my environment (apac.anthropic.claude-sonnet-4-20250514-v1:0), it appears I am running on AWS    
  Bedrock in the Asia-Pacific region. The "apac" prefix in the model ID is typically associated with Bedrock deployments.   

What Should Happen?

It should give me the system design guidelines that I asked.

Error Messages/Logs

API Error: 400 messages.1.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is 
     enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and             
     `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable          
     `thinking`. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking

Steps to Reproduce

  1. I tried some troubleshoot methods e.g.

setting up the vs code settings.json

"claudeCode.preferredLocation": "panel",
"claudeCode.skipLogin": true,
"claudeCode.disableLoginPrompt": true,
"claudeCode.enableExtendedThinking": false,  // Set it to false so thinkign will not block the response
"claudeCode.selectedModel": "global.anthropic.claude-3-opus-20240229-v1:0",
  1. changing the model , but non of these solution worked. I have enabled ALL IAM permission's to access aws bedrock even asking to claude for where it is running is responding me properly.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.7

Claude Code Version

2.1.110

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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