Description
Bad Request: messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'
Plugins
No response
OpenCode version
1.14.21
1.14.22
Steps to reproduce
- Ask to update something in the spec of a custom image format
- the spec file is read
- message
Bad Request: messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'appears using Claude Sonnet 4.6 (but similar error messages also come with Gemini/ChatGPT, while Big Pickle seems to work)
I've updated to the latest version and I've added explicitly to agents.md not to send, retrieve ety. any images
Screenshot and/or share link
Error Slaude Sonnet 4.6:

Error ChatGPT:
Operating System
Win11 25H2
Terminal
Windows Terminal
Description
Bad Request: messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'Plugins
No response
OpenCode version
1.14.21
1.14.22
Steps to reproduce
Bad Request: messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'appears using Claude Sonnet 4.6 (but similar error messages also come with Gemini/ChatGPT, while Big Pickle seems to work)I've updated to the latest version and I've added explicitly to agents.md not to send, retrieve ety. any images
Screenshot and/or share link
Error Slaude Sonnet 4.6:

Error ChatGPT:
Operating System
Win11 25H2
Terminal
Windows Terminal