fix(tui): target the terminal client clipboard over SSH#4484
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @Hmbown's task in 4m 23s —— View job Claude finished reviewing PR #4484Todo list
SummaryThis is a well-scoped fix for a real bug class: over SSH, a remote-host Two inline notes posted, both non-blocking:
Other things checked, no issues found
|
Prefer OSC 52 over host-native clipboard writes in SSH sessions so a successful remote Linux clipboard cannot shadow the terminal client's clipboard. Keep tmux passthrough intact, route remote paste through terminal bracketed-paste input, and document client-neutral shortcuts with focused PTY coverage. Signed-off-by: Hunter B <hmbown@gmail.com>
Use tmux load-buffer -w under stock tmux, propagate transport failures, and retain native reads only for forwarded or explicitly selected graphical clipboards.\n\nAlign help and docs with the in-app Ctrl+C selection path, localize SSH paste guidance, and cover the real SSH PTY/tmux flow. Signed-off-by: Hunter B <hmbown@gmail.com>
a4f428a to
781b1c5
Compare
Assert that stock tmux load-buffer -w emits an OSC 52 request to an attached client, not only that it fills the paste buffer. Separate terminal-owned text paste from graphical text/image clipboard access in help across every complete locale, and align the SSH_TTY comment with the detection logic. Signed-off-by: Hunter B <hmbown@gmail.com>
|
Claude finished @Hmbown's task in 2m 45s —— View job Claude finished re-reviewing PR #4484Todo list
SummaryRe-reviewed after Hunter's handoff (
The tmux staleness caveat I flagged (SSH env vars persisting across a tmux detach/reattach) was correctly not addressed in code — it's inherent to any env-var heuristic and was noted as non-blocking / follow-up material, not something this PR needs to solve. New in this commit, and it's a genuine strengthening of the test suite: Verified consistent with the PR's own claims
Not independently verifiedI don't have No blocking issues found. This looks ready to come out of draft once CI is green. |
Summary
load-buffer -winside tmux, with truthful failure reportingCODEWHALE_SSH_CLIPBOARD=graphicaloverrideVerification
cargo fmt --all -- --checkgit diff --checkallow-passthrough=offprovedload-buffer -wboth fills the buffer and emits the expected OSC 52 receipt to a real attached PTY client; this is now automated with bounded attach/receipt deadlinesscripts/release/check-ohos-deps.shpassed; the clipboard implementation stays excluded fromtarget_env = "ohos"and no unsupported arboard/PTY/keyring chain re-enters that graph7d64a3c87b0f086c30492009557624909989d7072faedb5f98b0910ca31852d1580d50710104b839A physical second-host/macOS-terminal policy matrix was not available, but both transport boundaries are covered by real PTY/tmux receipts and the platform-selection logic is unit-tested.
No release publication is part of this PR.