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.fbs with any content
- Launch opencode
- Ask
Please read the @test.fbs file
- 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
Operating System
macos Sequoia 15.6.1
Terminal
alacritty
Description
When asking OpenCode to read an
.fbsfile (FlatBuffers schema), the read tool detects this asimage/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
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
test.fbswith any contentPlease read the @test.fbs fileimage/vnd.fastbidsheetand depending on the model and the file content output may vary.Screenshot and/or share link
Operating System
macos Sequoia 15.6.1
Terminal
alacritty