Description
Issue
I've got the error:
undefined: The model returned the following errors: prompt is too long: 210602 tokens > 200000 maximum
When using the model: Claude Opus 4.6 (Global) Amazon Bedrock
Expected behavior
The context window of Claude Opus 4.6 is 1M tokens and not 200K tokens.
Workaround
Changed model to Claude Opus 4.5 (Global) Amazon Bedrock which triggered compaction.
Plugins
No response
OpenCode version
1.1.53
Steps to reproduce
- Set the model to
Claude Opus 4.6 (Global) Amazon Bedrock
- Exceed the 200K token limit
Screenshot and/or share link
Operating System
macOS 26.2
Terminal
Ghostty