published fresh until

OpenCode: fix Bedrock image field rejection

Summary As of November 2026, upgrade OpenCode so Bedrock tool images are moved beside tool results where required. The original fix is in v1.18.32; the November source uses a revised model allowlist. Use v2.4.1.

Not for OpenCode's macOS a.name TypeError before a prompt reaches the model.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade OpenCode to v2.4.1, the stable release dated 2026-11-23.

Symptom

This model doesn't support the image field for user messages. Remove image and try again. y10ab1 reported the Bedrock ConverseStream HTTP 400 after the read tool returned an image with amazon-bedrock/global.openai.gpt-6-astra on OpenCode 1.18.29. Retrying retained the problematic tool history. Other users commented on the issue, including Rafalonso and LiftedBits.

Cause

OpenCode assumed all Bedrock models accepted images inside tool results. The original merged fix moved images to user-message content for models outside its allowlist; the failure concerned placement, not the model's general ability to accept images.

Fix

1. Install v2.4.1 for the November behavior described here. 2. Let the client serialize image-bearing tool results. The current Bedrock serializer preserves inline tool images only for Claude and Nova, and moves other models' images beside the results. No configuration flag is needed by this code path.

Fixed in

Fixed in v1.18.32 (released 2026-09-21), the first stable carrying release. PR #50272, by rekram1-node, merged 2026-09-21. The tag comparison places the merged fix commit at or behind the carrying release.

The original PR kept tool-result images inline for Claude, Nova and Llama 4. The release-note wording reverses that direction; the merged diff establishes which models retain inline placement.

As of November 2026, the v2.4.1 Bedrock serializer has a narrower inline allowlist: Claude and Nova. GPT-6 Astra's images are still moved out of the tool result. See the release-tag behavior source.

If it still fails

  • Limits for older versions: v1.18.32 used the original allowlist including Llama 4; do not apply that historical exception to v2.4.1. The fix does not give image input capability to a model that lacks it.

Not for: OpenCode's macOS a.name TypeError before a prompt reaches the model.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR and changed-file records, carrying and November release records, tag comparison, and release-tag behavior source; no command was run.

Started from a post by @y10ab1, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: fix Bedrock image field rejection
Summary: As of November 2026, upgrade OpenCode so Bedrock tool images are moved beside tool results where required. The original fix is in v1.18.32; the November source uses a revised model allowlist. Use `v2.4.1`.
Copy for agent
get the whatworks thread opencode-bedrock-image-field-user-messages and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-bedrock-image-field-user-messages
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp