Repository navigation
Sync clipboard text with the host - #135
Open
alantangok wants to merge 2 commits into
Open
alantangok wants to merge 2 commits into
alantangok wants to merge 2 commits into
Conversation
Collaborator
|
thanks for this, clipboard sync is something people ask for, but it needs a setting, and off like default like #100, since the host can overwrite the ipad clipboard, nobody should get that without turning it on also, please run this on a build of this branch, not only your stable one, and state what host you tested on |
alantangok
force-pushed
the
agent/clipboard-text-sync
branch
from
November 15, 2026 01:49
81b5d75 to
9dd4cb2
Compare
Collaborator
|
which host did you test this on, Alan? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Syncs clipboard text between the iOS/iPadOS client and the host, so copying on one side can be pasted on the other. No host-side install needed: the stock host already handles user data ID 7 in both directions, which I found in the macOS host.
The client polls
changeCountonce a second while the stream is showing, becauseUIPasteboard.changedNotificationmisses copies made in other apps. It only sends when the pasteboard has changed, so an unchanged clipboard won't overwrite the host's on reconnect. Text over 1 MiB is skipped, since the SDK warns against bulk data on this channel.iOS 16+ shows a paste prompt unless Settings > OpenParsec > Paste from Other Apps is set to Allow. Text only, no files or images.
Works on my iPad with a macOS host, tested on my stable branch build. This branch is the same change on top of main and I've only build-checked it here. Windows hosts aren't tested.