Skip to content

Prompt too long when using Claude Opus 4.6 (Global) Amazon Bedrock #12688

@shakedlokits

Description

@shakedlokits

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

  1. Set the model to Claude Opus 4.6 (Global) Amazon Bedrock
  2. Exceed the 200K token limit

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions