Skip to content

web: cannot paste screenshots/images into prompt input on mobile browsers #20966

@anas-asghar4831

Description

@anas-asghar4831

Description

When I copy a screenshot to clipboard on my phone and try to paste it into the prompt input on the web UI, nothing happens. The image doesn't get attached. On desktop browsers, image paste works fine through the attach button, but mobile paste from clipboard is broken.

I'd expect to be able to long-press the input → Paste and have the screenshot appear as an image attachment, similar to how other chat UIs handle it.

Plugins

No response

OpenCode version

Latest

Steps to reproduce

  1. Take a screenshot on a mobile device (Android or iOS)
  2. Open OpenCode web UI in mobile browser (Chrome/Safari)
  3. Tap and hold the prompt input area
  4. Select "Paste" from the context menu
  5. Nothing happens — image is not attached

Screenshot and/or share link

No response

Operating System

Android 14 (Chrome), iOS 17 (Safari)

Terminal

Mobile browser

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)webRelates to opencode on web / desktop

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