Claude Opus 4.7 on AWS Bedrock fails with "reasoning part 0 not found" error on first message when using extended thinking. Opus 4.7 defaults thinking.display to "omitted" instead of "summarized".
Steps to Reproduce
- Configure OpenCode to use
us.anthropic.claude-opus-4-20250514 on AWS Bedrock
- Enable extended thinking (any variant)
- Send a message
Expected vs Actual
- Expected: First message completes
- Actual: "reasoning part 0 not found" error
Why This Happens
Commit #22873 fixed this for Anthropic Messages API but not for Bedrock. When display: "omitted", thinking blocks arrive empty, breaking Vercel AI SDK's streaming transform.
Environment
- OpenCode 1.4.7+
- Provider: AWS Bedrock
- Model:
us.anthropic.claude-opus-4-20250514 (Opus 4.7)
Authored by: Haiku 4.5 (90%), Human review & direction (10%)
Claude Opus 4.7 on AWS Bedrock fails with "reasoning part 0 not found" error on first message when using extended thinking. Opus 4.7 defaults
thinking.displayto"omitted"instead of"summarized".Steps to Reproduce
us.anthropic.claude-opus-4-20250514on AWS BedrockExpected vs Actual
Why This Happens
Commit #22873 fixed this for Anthropic Messages API but not for Bedrock. When
display: "omitted", thinking blocks arrive empty, breaking Vercel AI SDK's streaming transform.Environment
us.anthropic.claude-opus-4-20250514(Opus 4.7)Authored by: Haiku 4.5 (90%), Human review & direction (10%)