[PR #4540] Image tag fix for real this time #11012

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

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

State: closed
Merged: Yes


Turns out my last fix actually just masked the issue and caused models to hallucinate an image description despite never receiving the image. (surprisingly well too)

All attachments in the tui (starting after the opentui release) were being hardcoded as mime type text/plain so it wasn't being passed to the model properly.

This one actually properly shows 'img' in the attachment message in the tui instead of 'txt' which was being shown post-1.0.x, and the model returns an actual non-hallucinated description.

@rekram1-node 🙏

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4540 **State:** closed **Merged:** Yes --- Turns out my last fix actually just masked the issue and caused models to hallucinate an image description despite never receiving the image. (surprisingly well too) All attachments in the tui (starting after the opentui release) were being hardcoded as mime type text/plain so it wasn't being passed to the model properly. This one actually properly shows 'img' in the attachment message in the tui instead of 'txt' which was being shown post-1.0.x, and the model returns an actual non-hallucinated description. @rekram1-node 🙏
yindo added the pull-request label 2026-02-16 18:15:47 -05:00
yindo closed this issue 2026-02-16 18:15:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11012