According to @simon in Update quotes and mentions when username is changed
when a username is changed, quotes and mentions are now automatically updated. Changing a username will not break quotes and mentions.
I’m finding that when a username is changed by SSO, then this doesn’t happen. Which would seem to be a bug.