You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt too long when using Claude Opus 4.6 (Global) Amazon Bedrock #12688
The core issue is that the context-1m-2025-08-07 beta header is not being sent for Opus 4.6 models, which prevents the Anthropic API from allowing requests beyond 200k tokens despite the model supporting 1M tokens.
Same here. AutoCompaction is either missing or not kicking in. Switching to another model, seems to trigger the compaction, after which one cat switch back to 4.6 etc.
Activity
github-actions commentedon Feb 8, 2026
This issue appears to be related to existing problems with Claude Opus 4.6 context window configuration. Please check:
context-1m-2025-08-07not sent for Claude Opus 4.6, causing 200k hard limit #12507: Beta header 'context-1m-2025-08-07' not sent for Claude Opus 4.6, causing 200k hard limit — This is the root cause. OpenCode needs to send the proper beta header to unlock the 1M context window.The core issue is that the
context-1m-2025-08-07beta header is not being sent for Opus 4.6 models, which prevents the Anthropic API from allowing requests beyond 200k tokens despite the model supporting 1M tokens.Badbird5907 commentedon Feb 12, 2026
I'm also getting this issue on Amazon Bedrock
shakedlokits commentedon Feb 15, 2026
It's not fixed as of
1.2.4, currently cannot use Opus 4.6 on my work laptop.smashah commentedon Feb 15, 2026
happening on 4.6 via antigravity auth also.
LucaNerlich commentedon Feb 19, 2026
Same here. AutoCompaction is either missing or not kicking in. Switching to another model, seems to trigger the compaction, after which one cat switch back to 4.6 etc.
nathanl commentedon Mar 6, 2026
I accidentally opened a duplicate issue for this. A possible workaround: override the model's limit in
~/.config/opencode/opencode.json:{ "provider": { "amazon-bedrock": { "models": { "us.anthropic.claude-opus-4-6-v1": { "limit": { "context": 200000, "output": 32000 } } } } } }With this, the "% used" in OpenCode's sidebar appears to be correct for 200K tokens.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.