GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME) · Issue #12547 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME)#12547
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingwindows

Description

@abdiths
abdiths
opened on Feb 7, 2026
Issue body actions

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

Activity

  1. abdiths
    added
    bugSomething isn't working
    on Feb 7, 2026
  2. github-actions
    assigned
    rekram1-node
    on Feb 7, 2026
  3. github-actions
    added
    windows
    on Feb 7, 2026
  4. github-actions commented on Feb 7, 2026

    @github-actions
    github-actionsBot
    on Feb 7, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Images exceeding 2000px are rejected by Anthropic API #12068: Images exceeding 2000px are rejected by Anthropic API
    • Image Clipboard Paste Not Working in OpenCode #10154: Image Clipboard Paste Not Working in OpenCode
    • [BUG]: ENOENT when image URL is treated as local file path — breaks TUI rendering #10730: ENOENT when image URL is treated as local file path — breaks TUI rendering
    • tui does not support images #12075: tui does not support images
    • [BUG] Azure gpt-5.2-codex (vision-capable) is unable to read screenshots #10150: Azure gpt-5.2-codex (vision-capable) is unable to read screenshots

    Feel free to ignore if none of these address your specific case.

  5. yxshee commented on Feb 7, 2026

    @yxshee
    yxshee
    on Feb 7, 2026
    More actions

    #12592

    Fixed crash when pasting images from clipboard on Windows 11.

    Error: TypeError: The URL must be of scheme file (ERR_INVALID_URL_SCHEME)

    Root Cause

    In prompt.ts, the switch statement at line 946 handles URL protocols:

    • case "data:" only processes text/plain mime types, then breaks
    • For clipboard images (image/png), the condition fails and falls through to case "file:"
    • fileURLToPath() is called on a data: URL → crash
  6. github-actions commented on Apr 9, 2026

    @github-actions
    github-actionsBot
    on Apr 9, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. github-actions
    closed this as completedon Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.