- Go to the homepage
- Open an "add a link" suggested edit
- Open VE
- Make a change (accepting or rejecting a link recommendation is enough)
- Navigate to the homepage (by clicking the username link at the top of the page), ignoring the browser warning that you're about to lose your changes
- Open the same suggested edit again
- Open VE again
- All link recommendations will appear twice (except the one that you accepted or rejected)
Relatedly, if you navigate away or close the tab after making a change, then try to start a normal VE session on the article, you'll get an error saying your changes could not be recovered (this failure is presumably because the DmRecommendedLinkAnnotation class isn't loaded).
When loading VE in add a link mode, we should prevent it from trying to restore an edit. It also should not write to the restored edit store in add a link mode.


