Skip to content

Error when attempting to read TGA file #10609

Closed

Description

@zaidka

Description

I get the following error when the agent attempts to read a .tga file:

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'

Strangely, I can only observe it happening when using one of the Anthropic models (e.g. Opus 4.5, Sonnet 4.5). Can't reproduce the issue with other models like Devstral Small 2.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

Simply ask the agent "Read the file example.tga" where example.tga is a valid TGA file.

Screenshot and/or share link

Image

Operating System

Fedora 43

Terminal

ptyxis

Activity

  1. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. github-actions commented on Mar 29, 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