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

Closed
opened 2026-02-16 18:04:55 -05:00 by yindo · 3 comments
Owner

Originally created by @mathpal on GitHub (Jan 18, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @mathpal on GitHub (Jan 18, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When asking OpenCode to read an `.fbs` file (FlatBuffers schema), the read tool [detects](https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/tool/read.ts#L41) 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 ``` <img width="2208" height="686" alt="Image" src="https://github.com/user-attachments/assets/cabb63d7-17ce-459d-9f84-e128432d9a49" /> ### Operating System macos Sequoia 15.6.1 ### Terminal alacritty
yindo added the bug label 2026-02-16 18:04:55 -05:00
yindo closed this issue 2026-02-16 18:04:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

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

  • #4052: SVG File Paths Rejected - Similar issue where text files (SVG) are incorrectly detected as images and rejected by the provider

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #4052: SVG File Paths Rejected - Similar issue where text files (SVG) are incorrectly detected as images and rejected by the provider Feel free to ignore if this doesn't address your specific case.
Author
Owner

@mathpal commented on GitHub (Jan 18, 2026):

The issue is similar to #4052 but for a different extension.

@mathpal commented on GitHub (Jan 18, 2026): The issue is similar to #[4052](https://github.com/anomalyco/opencode/issues/4052) but for a different extension.
Author
Owner

@mathpal commented on GitHub (Jan 18, 2026):

based on https://www.iana.org/assignments/media-types/image/vnd.fastbidsheet, this seems to be an image format for some types of construction plans?. Should we just force treat this mime type as text, as I would expect opencode to run into .fbs more in context for flatbuffers than a custom construction design plan image format.

@mathpal commented on GitHub (Jan 18, 2026): based on https://www.iana.org/assignments/media-types/image/vnd.fastbidsheet, this seems to be an image format for some types of construction plans?. Should we just force treat this mime type as text, as I would expect opencode to run into `.fbs` more in context for flatbuffers than a custom construction design plan image format.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6673