gsettings set org.gnome.desktop.interface gtk-enable-primary-paste true
After an update, middle-click (primary) copy & paste stopped working in ghostty, because gnome decided to disable the primary clipboard by default. Since ghostty is the only gtk4 application I use, this change caught me by surprise. Luckily, the GitHub discussion was easily findable.
Rant
This is the second time in a couple of months that the way I interact with my terminal has been broken. Things like this must not happen, and I am slightly annoyed that in my 11 years of using Linux, my all my terminal emulators1 had done their job for a decade, only for it to break twice in a couple of months. Software is information, it should not break2.