Skip to content

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

@vdmkotai

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions