Skip to content

[FEATURE]: Desktop should accept more dropped file types in prompt input #18143

Closed as not planned

Description

@anduimagui

Feature hasn't been suggested before.

  • 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.

Related issues:

Additional context:

  • Screenshot attached in the original report shows the Desktop error state.
  • This request is mainly about parity with TUI for inserting dropped files into the prompt as references/context.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    webRelates to opencode on web / desktop
    on Mar 18, 2026
  2. removed
    webRelates to opencode on web / desktop
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  3. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions