Description
The maxTokens value is omitted, so Bedrock defaults to 4096. In Claude Code the value is 128,000 for Opus 5.5, and 64.000 for Fable 5.1.
When Claude models think for more than 4k tokens, the turn ends without any answer, error or retry. Usually in the middle of a thinking block.
A workaround is to add this to opencode.jsonc:
- Confirmed with Fable 5.1 and Opus 5.5, could be more models through Bedrock.
- Only tested in V2
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
The
maxTokensvalue is omitted, so Bedrock defaults to 4096. In Claude Code the value is 128,000 for Opus 5.5, and 64.000 for Fable 5.1.When Claude models think for more than 4k tokens, the turn ends without any answer, error or retry. Usually in the middle of a thinking block.
A workaround is to add this to
opencode.jsonc:Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response