altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

bedrock: tool-result images break non-Claude/Nova/Llama 4 models ("doesn't support the image field")

Open devin-ai-integration[bot] opened this issue 3 weeks ago • 0 comments

Problem

When a tool (e.g. read) returns an image on Amazon Bedrock, the fork always leaves the image inside the tool result. Bedrock Converse only accepts images in tool results for Claude, Nova and Llama 4. On every other Bedrock model (e.g. openai.gpt-oss-*, Mistral, DeepSeek), the next turn fails with This model doesn't support the image field for user messages. The image stays in history, so the session is stuck.

Upstream fix

anomalyco/opencode#50272 (fixes upstream #48069 / #49443): keep tool-result media only for Bedrock Claude, Nova and Llama 4 model ids. Other Bedrock models use the existing hoist, which sends the media as a separate user message.

Tracked from #1478.