Skip to content

fix(tui): stop reporting a failed clipboard read as an empty one - #707

Merged
mohitranka merged 2 commits into
mainfrom
forge/fix-image-upload
Sep 16, 2026
Merged

mohitranka merged 2 commits into
mainfrom
forge/fix-image-upload

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

@/var/folders/rn/rqb_sn_d7x717z09r0kyh9ww0000gn/T/forge-2889d072-e9d2-40fe-b35f-e546cd5b3060-MSnHvj/pr-body.md

Ctrl+Shift+V pasted nothing whenever the macOS reader could not write its spill file into AppleScript's `temporary items folder`: the -54 was folded into "clipboard is not an image", so a readable PNG on the clipboard read as an empty clipboard.

The reader now fills a scratch path the caller owns, chosen uniquely per process and call, converts a TIFF-only clipboard with sips, and keeps the reader's own words when it fails. Windows never printed the path it saved, so its read always had nothing to open.
@mohitranka
mohitranka merged commit 26938f1 into main Sep 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant