Selection middle-click paste into Logseq Electron app causes the latter to hang for half an hour

This probably is not NixOS, but i could use a lot of help figuring out how to figure out what to blame.

Happens with Mozilla Firefox 133.0.3 (even when selecting the URL from the address bar) and also from Zulip when going into Logseq 0.10.9

Operating System: NixOS 25.05
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 92.1 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 16 (AMD Ryzen 7040 Series)
System Version: AJ

Posted a bug at Logseq also for now: Middle-click paste of selection buffer causes Logseq to freeze for up to half an hour · Issue #11657 · logseq/logseq · GitHub

And realized that this definitely does not happen every time, but it happens a lot. Have not figured out how to reliably reproduce it though; it does not happen at all when i try.