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
Rule: should a full-document paste keep heading toc-ids? #700
Should a full-document paste keep each heading's toc-id?
Found in #520 (measured 2026-11-04). After ⌘A, ⌘C, ⌘V with real keys, every heading toc-id got a new value (4 of 4, 34 of 34). Every media keyId got a new value too (3 of 3). Both clients kept the same text, links, embeds and headings, with 0 errors.
Why it matters
Heading chats pair with their heading by toc-id. A new id leaves the old chat room without its heading.
?id= links point at a heading by toc-id. A new id breaks those links.
Options
Keep ids on paste when the source is the same pad and the id is not already in use. Chats and links survive a cut-and-paste of the whole document.
Keep today's behaviour. A paste is new content, so it gets new ids. Document this.
Done when
The maintainer rules on option 1 or 2 in a comment here.
If option 1: a build issue exists, with a test proved by sabotage.
Ruled out of #520's scope on 2026-11-06 (maintainer ruling, decision 4).
Activity
feat(webapp): keep heading ids on a paste in the same pad
fix(webapp): tighten the same-pad mark and keep ids on a drag
refactor(webapp): share the TOC row lookup, scroll lock and labels