I was transferring my configs to a new machine, and copied the ~/.config and ~/.local/share directories. This included ~/.config/kdeconnect/, specifically the certificate.pem and privateKey.pem files. This led to weird behavior. My phone was able to connect to the new machine without me pairing it. But even weirder, when both computers were on at the same time, my phone would randomly choose which computer it is connecting to every time I refreshed the app.
I haven’t looked into the code but here is what I believe is happening: both computers were attesting to being the machine the phone is trying to connect to, and succeeding because they had the same certificates. I guess it is random because both are sending the same request/ping at different times.
I already solved my issue by deleting those *.pem files on new machine, restarting the computer, then restarting KDE Connect and it regenerated unique *.pem files for the new computer. But this was very unusual behavior before I figured out what was happening. Is this something worthy of a bug report?