Skip to content

Reading .fbs files fails with "Unsupported image mime type: image/vnd.fastbidsheet" #9210

Description

@mathpal

Description

When asking OpenCode to read an .fbs file (FlatBuffers schema), the read tool detects this as image/vnd.fastbidsheet.

which is then treated as an image, base64 encoded and fed to the AI SDK. In my case, my provider (Bedrock + Anthropic model) rejects the request with

     AI_UnsupportedFunctionalityError: Unsupported image mime type: image/vnd.fastbidsheet, expected one of: image/jpeg, image/png, image/gif, image/webp

This effectively halts the session with no way to recover from it.


In a fresh install of opencode, with the default model, it seems the "image" is accepted by the model and the content is misinterpreted.

Plugins

none

OpenCode version

1.1.25

Steps to reproduce

  1. Fresh install of opencode on macos
  2. create a test.fbs with any content
  3. Launch opencode
  4. Ask Please read the @test.fbs file
  5. It will be read as image/vnd.fastbidsheet and depending on the model and the file content output may vary.

Screenshot and/or share link

% cat test.fbs
hello
Image

Operating System

macos Sequoia 15.6.1

Terminal

alacritty

Activity

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