Skip to content

Conversation

@abdiths
Copy link
Contributor

@abdiths abdiths commented Feb 7, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2026

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

No duplicate PRs found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME)

1 participant