Skip to content

docs: add clipboard and file bridge plan - #7

Open
iagodahlem wants to merge 1 commit into
masterfrom
iago/clipboard-bridge
Open

docs: add clipboard and file bridge plan#7
iagodahlem wants to merge 1 commit into
masterfrom
iago/clipboard-bridge

Conversation

@iagodahlem

Copy link
Copy Markdown
Owner

Copying from the Linux box to the Mac has never worked, and images or files cannot be pasted the other way at all. This documents why, and the plan to fix both, before any config changes land.

No behavior changes here. This is the plan only, so the shell functions and tmux settings it describes are not applied yet.

Changes:

Clipboard plan doc: new CLIPBOARD.md covering both directions across plain ssh, tmux, and an agent CLI, so the next pass can be applied without re-deriving any of it.
Root cause for text: the copy-mode binding pipes to xclip, which is not installed on the headless box and never will be, so every copy silently goes nowhere.
Root cause for images: OSC 52 carries text only, so images and video can never travel over the clipboard path regardless of configuration, and need a file transfer instead.
Text fix: switch tmux to set-clipboard on and let it emit OSC 52 itself, plus a copy function that prefers the tmux route because that is the only one available to an agent CLI's shell tool.
File fix: an ssh pull from the Mac, so a screenshot or a dragged file lands on the Linux box as a path, and works from inside an agent session with no extra window.
Audit findings: records the current tmux settings, the missing xterm-ghostty terminfo, and the ssh key that was generated but never authorized, since those are the actual blockers.

Documents why copy from the Linux box to the Mac fails today, why images
and files can never travel over the clipboard escape sequence, and the
two fixes: an OSC 52 text path through tmux, and an ssh file bridge for
images and video.
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