anomalyco / anomalyco/opencode

[BUG] thinking.adaptive.block_binding.prefix_mismatch_behavior: Extra inputs are not permitted

Open
#46,729 8 comments 14 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Sep 2, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

After upgrading from OpenCode 1.18.25 to 1.18.26, requests to amazon-bedrock/global.anthropic.claude-opus-5 fail before producing output:

The model returned the following errors: thinking.adaptive.block_binding.prefix_mismatch_behavior: Extra inputs are not permitted

The same Bedrock model and configuration worked before 1.18.26. There is no custom thinking or reasoningConfig override.

1.18.26 introduced block_binding for Claude 5 in #46653. That PR notes that live verification against Bedrock was still outstanding. The Bedrock Opus 5 route appears to reject the injected field despite the accompanying beta configuration.

Expected: Claude Opus 5 requests succeed, dropping stale thinking blocks when necessary.

Actual: the request is rejected due to the injected prefix_mismatch_behavior field.

Plugins
  • oh-my-opencode-slim
  • @datadog/opencode-plugin
OpenCode version

1.18.26

Steps to reproduce
  1. Configure the amazon-bedrock provider in ap-southeast-1.
  2. Use model amazon-bedrock/global.anthropic.claude-opus-5 with variant high.
  3. Send a prompt through the primary agent.
  4. Observe the request fail with the validation error above.
Screenshot and/or share link

No share link available. The exact error is included above.

Operating System

Ubuntu 24.04 on WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2, x86_64)

Terminal

tmux (TERM=tmux-256color)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.