GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Desktop should accept more dropped file types in prompt input · Issue #18143 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Desktop should accept more dropped file types in prompt input#18143
Copy link
Assignees
Brendonovich

Description

@anduimagui
anduimagui
opened on Mar 18, 2026
Issue body actions

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:

  • [FEATURE]: Edit Prompts and File Drag-and-Drop. #15493 - Desktop app only allows files from the active working directory / Desktop-specific drag-and-drop gap
  • [FEATURE]:It's recommended to drag and drop files in, and it should support more formats, such as .kt, .java, .xml, etc. #15177 - More drag-and-drop file formats requested
  • [FEATURE]: improve TUI clipboard paste and drag-and-drop file handling on Linux #14555 - TUI/Linux drag-and-drop and paste handling improvements
  • Images can not be dragged and dropped #4668 - Images can not be dragged and dropped
  • Drag-dropped images lose absolute file path, preventing tools from accessing them #17488 - Drag-dropped images lose absolute file path
  • [Bug] Image drag-and-drop not working in Cursor terminal — works in iTerm #18107 - Cursor terminal drag-and-drop image path fallback discussion

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.
Reacted by fnpanic, AtletiaApp and Sekedus

Activity

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

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

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

  5. github-actions
    closed this as not plannedon Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Brendonovich
    Brendonovich

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.