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.32used the original allowlist including Llama 4; do not apply that historical exception tov2.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
- Bedrock GPT-6 Astra fails after the read tool returns an image, y10ab1, opened 2026-09-09; closed as completed on 2026-09-21: "Reading an image"
- fix(opencode): hoist Bedrock tool images except Claude, Nova, and Llama 4, rekram1-node; merged 2026-09-21 (closed).
- v1.18.32, published 2026-09-21.
- v2.4.1, published 2026-11-23.
- Comment by Rafalonso, Rafalonso, 2026-09-10; parent issue closed as completed on 2026-09-21.
- Comment by LiftedBits, LiftedBits, 2026-09-10; parent issue closed as completed on 2026-09-21.
- Behavior source at v2.4.1, release-tag source read 2026-11-24.
- Carrying-tag comparison, read 2026-11-24; merge commit is an ancestor of the tag.
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