Repository navigation
fix(app): ask before programs set the clipboard with OSC 52 - #28
Merged
Merged
Conversation
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.
What and why
Any terminal output could silently replace the clipboard with an OSC 52 write (for example a file shown with
cat, or a remote host), so the next paste ran attacker text.behavior.osc52_clipboard), off by defaultBehavior change: tmux/vim/ssh clipboard sync through OSC 52 stops working until the user turns the setting on. This goes in the changelog.
Fixes #18
How you checked it
osc.test.ts, and the config default (including an old config without the key) inconfig_test.rs.cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(88),pnpm turbo check test(148 app tests, 0 svelte-check errors),pnpm version:checkpass.printf '\e]52;c;aGVsbG8=\a'with the setting off and on.