You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editorial Notes: Notes can be attached to stale block client IDs when the editor changes mid-request #1174
Editorial Notes holds on to a block's client ID from the moment a request starts. If the editor changes while that request is in flight, the client ID can go stale, and the note ends up attached to a block that no longer exists.
Toggling "Show Template" mid-request
The note is generated successfully, but it shows the original block as deleted. Toggling template mode rebuilds the block tree and gives every block a new client ID, so the ID the request started with no longer matches anything.
Deleting a block mid-request
If a block is removed from the canvas while its request is in flight, the request is wasted and the note is attached to a block that doesn't exist.
For useEditorialNotes.ts, this happens because the corresponding createNote helper may use a stale block.clientId here:
Activity
yogeshbhutkar commentedon Oct 14, 2026
I can take this up after #1137 gets merged so that the shared helper is re-used.
jeffpaul commentedon Oct 28, 2026
@yogeshbhutkar note that 1137 has been merged
yogeshbhutkar commentedon Nov 10, 2026
This issue is still on my radar, and am fixing dependencies (#1222, #1340) first before picking this up.