Opencode shows error when attaching a supported file after an unsupported one #996

Closed
opened 2026-02-16 17:29:02 -05:00 by yindo · 1 comment
Owner

Originally created by @cpalau on GitHub (Jul 30, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Hi,

I am using GitHub Copilot with ChatGPT 4.1, which does not support PDF files but does support PNG images.

I have attached a video demonstrating the issue.

Steps to reproduce:

  1. First, attach a file type that the model does not support. It's correct that Opencode shows an error in this case.
  2. Next, attach a file type that the model supports, but an error is still displayed.
  3. Type /new.
  4. Try step 2 again, and this time it works fine.

Thanks,
Chris

Bug video:

https://www.loom.com/share/40472817dc1d437ebb3c5d2d59d591ab?sid=ffd5ccc7-1422-4cf4-b971-693c0912ffe9

Originally created by @cpalau on GitHub (Jul 30, 2025). Originally assigned to: @adamdotdevin on GitHub. Hi, I am using GitHub Copilot with ChatGPT 4.1, which does not support PDF files but does support PNG images. I have attached a video demonstrating the issue. Steps to reproduce: 1) First, attach a file type that the model does not support. It's correct that Opencode shows an error in this case. 2) Next, attach a file type that the model supports, but an error is still displayed. 3) Type /new. 4) Try step 2 again, and this time it works fine. Thanks, Chris Bug video: https://www.loom.com/share/40472817dc1d437ebb3c5d2d59d591ab?sid=ffd5ccc7-1422-4cf4-b971-693c0912ffe9
yindo closed this issue 2026-02-16 17:29:03 -05:00
Author
Owner

@adamdotdevin commented on GitHub (Aug 13, 2025):

we might consider removing messages from history altogether in these scenarios in the future, but in the meantime you can /undo to revert the last message and continue in your current session unaffected

@adamdotdevin commented on GitHub (Aug 13, 2025): we might consider removing messages from history altogether in these scenarios in the future, but in the meantime you can `/undo` to revert the last message and continue in your current session unaffected
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#996