Skip to content

Drag-and-drop image attachment fails when filename contains parentheses #17075

Closed as not planned

Description

@vdmkotai

Description

Dragging and dropping an image into the chat fails silently when the filename contains parentheses.

Example filename that fails: image (1).png

Filenames without parentheses (e.g. screenshot.png) attach correctly via drag-and-drop.

Plugins

oh-my-opencode

OpenCode version

1.2.24

Steps to reproduce

  1. Download or save any image so that macOS appends a number in parentheses to the filename (e.g. image (1).png)
  2. Open OpenCode in Ghostty terminal
  3. Drag and drop the file into the chat input
  4. Observe: the image is not attached / nothing happens
  5. Rename the same file to remove parentheses (e.g. image1.png)
  6. Drag and drop again
  7. Observe: the image attaches successfully

Screenshot and/or share link

Screen.Recording.2026-03-11.at.22.26.12.mov

Operating System

macOS 26.2

Terminal

Ghostty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 11, 2026
  2. added a commit that references this issue on Mar 11, 2026
    e413e66
  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 7, 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