[PR #5521] Provider fix, anthropic Errorhandling if empty image file is read #11452

Closed
opened 2026-02-16 18:16:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5521

State: closed
Merged: Yes


when the agent creates images, by screenshot or otherwise, which produces and file, which is empty, calling the antrophic provider will fail and the chat session is broken, it will not allow you to continue.

Session Export:
session_empty_image_.json

The fix will check if there is any content, otherwise return a message to the agent, the test is entirely generated by the ai.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5521 **State:** closed **Merged:** Yes --- when the agent creates images, by screenshot or otherwise, which produces and file, which is empty, calling the antrophic provider will fail and the chat session is broken, it will not allow you to continue. Session Export: [session_empty_image_.json](https://github.com/user-attachments/files/24149905/session_empty_image_.json) The fix will check if there is any content, otherwise return a message to the agent, the test is entirely generated by the ai.
yindo added the pull-request label 2026-02-16 18:16:17 -05:00
yindo closed this issue 2026-02-16 18:16:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11452