For those curious to see the future of Shared Edits, I have a work in progress PR here:
https://github.com/discourse/discourse-shared-edits/pull/143
It resolves the issue in the OP and a family of other issues, but will take a while to merge given the changes are extremely extensive.