Skip to content

fix: route terminal paste through electron clipboard - #65

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/failToPasteImage
Mar 23, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/failToPasteImage

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Problem

Pasting into the terminal went through Chromium's clipboard pipeline, which can hold NSPasteboard references during format conversion and interfere with concurrent clipboard reads by CLI tools on macOS.

Solution

Add a main-process clipboard text IPC, use it for terminal paste paths, and intercept terminal paste events so xterm receives text from Electron's native clipboard instead of Chromium. Preserve normal paste behavior for the terminal search input.

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