Skip to content

OpenCode Desktop - Drag and drop fails when dropping multiple files sequentially #39705

Closed as not planned

Description

@deepakajay0477

Description

Previously, dragging and dropping multiple files from the OpenCode Desktop file explorer into the chat input worked as expected. Now, dragging a second file causes it to disappear/get ignored without adding any file reference to the prompt.

Plugins

No response

OpenCode version

v1.18.9

Steps to reproduce

  1. Open OpenCode Desktop and start a chat session.
  2. Drag and drop one file from the file explorer sidebar into the chat prompt box (attaches as expected).
  3. Drag and drop a second file from the file explorer into the chat prompt box.
  4. Notice the second file disappears and does not get attached or referenced in the chat prompt.

Screenshot and/or share link

No response

Operating System

windows 10

Terminal

No response

Activity

  1. deepakajay0477 commented on Sep 15, 2026

    @deepakajay0477
    Author

    This is the same bug and it now has a fix with regression tests: #49185 (root cause was mention insertion reusing the @-query heuristic across prompt parts, so every drop after the first silently inserted nothing). Linked as Closes #39705.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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