opus not able to read images with read tool #3295

Closed
opened 2026-02-16 17:39:33 -05:00 by yindo · 2 comments
Owner

Originally created by @SirStisx on GitHub (Dec 4, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5

pasting same image to chat or dragging it into chat works.

OpenCode version

132

Steps to reproduce

  1. have a image in a folder /tmp on mac in this case
  2. tell the model to read that image with the read tool.

Screenshot and/or share link

No response

Operating System

No response

Terminal

ghosty

Originally created by @SirStisx on GitHub (Dec 4, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5 pasting same image to chat or dragging it into chat works. ### OpenCode version 132 ### Steps to reproduce 1. have a image in a folder /tmp on mac in this case 2. tell the model to read that image with the read tool. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal ghosty
yindo added the bug label 2026-02-16 17:39:33 -05:00
yindo closed this issue 2026-02-16 17:39:33 -05:00
Author
Owner

@modelnova-ai commented on GitHub (Dec 4, 2025):

Description

When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5

pasting same image to chat or dragging it into chat works.

OpenCode version

132

Steps to reproduce

  1. have a image in a folder /tmp on mac in this case
  2. tell the model to read that image with the read tool.

Screenshot and/or share link

No response

Operating System

No response

Terminal

ghosty

If you use a custom model provider, you need to add the image modalities in your config. Otherwise the Read tool cannot read images.

"models": {
  "claude-opus-4.5": {
    "id": "claude-opus-4.5",
    "modalities": {
      "input": ["text", "image"],
      "output": ["text", "image"]
    }
  }
}

After adding this, image reading will work.

@modelnova-ai commented on GitHub (Dec 4, 2025): > ### Description > When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5 > > pasting same image to chat or dragging it into chat works. > > ### OpenCode version > 132 > > ### Steps to reproduce > 1. have a image in a folder /tmp on mac in this case > 2. tell the model to read that image with the read tool. > > ### Screenshot and/or share link > _No response_ > > ### Operating System > _No response_ > > ### Terminal > ghosty If you use a custom model provider, you need to add the image modalities in your config. Otherwise the Read tool cannot read images. ```json "models": { "claude-opus-4.5": { "id": "claude-opus-4.5", "modalities": { "input": ["text", "image"], "output": ["text", "image"] } } } ``` After adding this, image reading will work.
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

fixed in next release, there was a regression going to add more tests:
https://github.com/sst/opencode/commit/350a32274a24e6f5ca3ea30be114a8171a58270f

@rekram1-node commented on GitHub (Dec 4, 2025): fixed in next release, there was a regression going to add more tests: https://github.com/sst/opencode/commit/350a32274a24e6f5ca3ea30be114a8171a58270f
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3295