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
[FEATURE]: Desktop should accept more dropped file types in prompt input #18143
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
This is a Desktop-specific follow-up to the broader file drag-and-drop / attachment issues already reported in this repo.
In OpenCode Desktop, dragging certain file types into the prompt input shows this error instead of inserting the file as a prompt reference:
Unsupported attachment
Only images, PDFs, or text files can be attached here.
That should not be the behavior for this workflow, and it is not the behavior in TUI. The wider problem is that Desktop currently accepts fewer dropped file types than TUI, so files that should be usable as prompt context are rejected before they can be inserted.
Expected behavior:
Dragging supported local files into Desktop should insert them into the prompt input as references/context instead of rejecting them.
Desktop should support the same or similar prompt file drop behavior as TUI where possible.
The Desktop prompt should not block common developer file formats just because they are not images, PDFs, or plain text.
Actual behavior:
Desktop rejects various dropped file formats with the unsupported attachment error.
The file is not inserted into the prompt input as a reference.
Why this issue is different:
This is specifically about the Desktop app's attachment restrictions and mismatch with TUI behavior.
Existing issues touch adjacent areas, but this issue is meant to track the broader Desktop gap where dropped files are not accepted into prompt input as references.
Activity
github-actions commentedon Jul 3, 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.