-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Reading .fbs files fails with "Unsupported image mime type: image/vnd.fastbidsheet" #9210
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Fresh install of opencode on macos
- create a
test.fbswith any content - Launch opencode
- Ask
Please read the @test.fbs file - It will be read as
image/vnd.fastbidsheetand depending on the model and the file content output may vary.
Screenshot and/or share link
% cat test.fbs
hello
Operating System
macos Sequoia 15.6.1
Terminal
alacritty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working