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 — fix(desktop): windows clipboard images come thru as data not file by abdiths · Pull Request #12549 · anomalyco/opencode

Conversation

@abdiths

@abdiths abdiths commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes a crash on Windows when pasting images from the clipboard.

The prompt pipeline treated clipboard images as file: URLs which throws on non‑file schemes like data: - for example a random screenshot using Snipping Tool file url path:

data:image/png;base64,iVBORw0KG....

If the URL isn’t a real file path, we log a warning and pass the file part through without attempting to read from disk. This prevents the hard failure while keeping existing behavior unchanged for valid file URLs.

How did you verify your code works?

  • Manually pasted an image from the clipboard on Windows 11; the prompt no longer crashes.
  • Verified normal file attachments still work as before.

Fixes #12547

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@abdiths
fix(desktop): windows clipboard images come thru as data not file
18d104c
@github-actions github-actions Bot added the contributor label Feb 7, 2026
@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Feb 7, 2026
feat: Pass through data URLs directly and gracefully handle unknown U… #12592
Closed
fix(desktop): add native clipboard image paste and fix text paste #12682
Merged
fix(tui): make Windows image paste reliable #13161
Closed
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@abdiths
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.