You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with Editor crashing when encountering .ico favicon file #9785
I added images to my next.js public dir and the agent worked fine, but the moment I added a favicon.ico file and asked it to make changes to the codebase to include the favicon, I just gave me errors like this one:
messages.0.content.13.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'
Plugins
NA
OpenCode version
Version 1.1.28 (1.1.28)
Steps to reproduce
Include a favicon.ico file in your dir and ask the agent to add it to code.
SVG File Paths Rejected #4052: SVG File Paths Rejected — related problem where non-standard image formats (.svg) are rejected with the same media type validation error
All these issues stem from the same root cause: OpenCode attempts to process certain file types as images when they shouldn't be, resulting in media type validation errors ('image/jpeg', 'image/png', 'image/gif' or 'image/webp' are the only supported formats).
Feel free to ignore if your specific case differs from these existing issues.
Activity
github-actions commentedon Jan 21, 2026
This issue might be a duplicate of existing issues. Please check:
All these issues stem from the same root cause: OpenCode attempts to process certain file types as images when they shouldn't be, resulting in media type validation errors ('image/jpeg', 'image/png', 'image/gif' or 'image/webp' are the only supported formats).
Feel free to ignore if your specific case differs from these existing issues.
github-actions commentedon Mar 28, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
fix(session): sanitize image attachments before sending to API