docs/plans/2026-04-06-footnote-stale-duplicate-warning-after-delete.md
Fix the footnote demo so duplicate-warning state clears when a duplicate set is resolved by deletion, not just by the explicit renumber action.
api.footnote.isDuplicateDefinition({ path })
and api.footnote.hasDuplicateDefinitions({ identifier }).insert_node, remove_node, and
relevant set_node operations.useNodePath does not update when sibling edits change this
node's path; footnote duplicate UI was reading duplicate state from that stale
path.useEditorSelector + editor.api.findPath(element) instead of stale
useNodePathcontentEditable={false} so the
warning text and repair button are not editable text surfacebun test, browser-use, and
pnpm lint:fix; skipped www build/typecheck by direct user request