You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI GPT models reject Desktop image attachments sent as application/octet-stream #37581
When I attach an image while using any model in the OpenAI GPT family in OpenCode Desktop, the request fails with:
file part media type application/octet-stream functionality not supported
This occurs across the entire GPT model family, not just one specific model. The image appears to be sent as application/octet-stream instead of its actual MIME type, such as image/png.
The same image can be accessed when I provide its full local path and ask the agent to read it. Only direct attachment through OpenCode Desktop fails.
Expected behavior:
The image should be sent with the correct MIME type and passed to the selected GPT model.
Actual behavior:
The image is sent as application/octet-stream and the request is rejected.
Plugins
@prevalentware/opencode-goal-plugin
OpenCode version
1.18.3
Steps to reproduce
Open OpenCode Desktop on Windows.
Select any OpenAI GPT model that supports image input.
Attach a PNG image using the attachment button.
Ask the model to describe the image.
Send the message.
The request fails with: "file part media type application/octet-stream functionality not supported".
Repeat with other GPT models and observe the same error.
Activity
github-actions commentedon Jul 18, 2026
This issue might be a duplicate of existing issues. Please check:
application/octet-streamMIME type error causing session failures with file attachments — root cause analysis and fix already tracked there.github-actions commentedon Sep 16, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.