A restore, import or template replaces the page through yrs, which
writes a new map for each database under the same id. An open editor
kept watching and editing the old, detached map: it showed the records
from before the restore, its edits went nowhere, and its records could
not open their bodies. The block now follows its entry in the blocks map
and rebinds (and reopens an open record) when the entry is replaced.
Found by testing databases in the web app against a running server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>