fix(opencode): hoist Bedrock tool images except Claude, Nova, and Llama 4
Merged
RE
2mo ago+5+5+0123456789-1-1-0123456789
Summary
Bedrock Converse only accepts an image inside a tool result for Claude, Nova, and Llama 4. OpenCode was leaving every Bedrock image there, so the next turn 400s with This model doesn't support the image field for user messages and the session stays stuck.
supportsMediaInToolResult now keeps that placement only for those model ids. Every other @ai-sdk/amazon-bedrock model uses the existing hoist, which sends the image as a normal user message. Mantle is unchanged.
Test plan
-
reada PNG withamazon-bedrock/global.openai.gpt-6-astraand confirm the next turn succeeds - Same with Claude Sonnet on Bedrock, and confirm the image stays in the tool result