Skip to content

Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME) #12547

@abdiths

Description

@abdiths

Description

Pasting any image from the clipboard on Windows 11 crashes the app.

App throws TypeError: The URL must be of scheme file and the prompt fails. Happens every time an image is pasted from clipboard.

Plugins

none

OpenCode version

0.0.0-dev-202602062314

Steps to reproduce

  1. Run OpenCode on Windows
  2. Open a new session
  3. Paste any image from clipboard into the prompt input

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

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