Skip to content

Issue with Editor crashing when encountering .ico favicon file #9785

Closed

Description

@Frostist

Description

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.

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Using the OpenCode IDE

Activity

  1. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

    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.

  2. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions