Closed
Description
The matter
OSC 52 is quite useful to work with, but, when logging into untrusted remote hosts, it lacks a security: remote software can read local selsctions without notifying the user.
It is not a Kitty issue (so not posting it as a security problem), but rather all terminals, supporting OSC 52 for selection sharing. Being first to handle this in the right way, Kitty can set a good example to others.
Possible solutions
Either make selection reading switchable in runtime (probably be by the kitten invoked for a hotkey) or, on the first per-session attempt to read user selection, ask the user if they want to allow or disallow it. Actually the both approaches look very friendly to the user.