[bug] move_nodes with toPageId leaves the moved frame's annotations behind as detached notes #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected: Moving an artboard to another page with
move_nodes {moves:[{nodeId, parentId:"root", toPageId}]}carries its annotations along (re-targeted to the new node ids).Actual: The artboard and its subtree move (with new ids), but every annotation targeting nodes inside it stays on the source page with
detached: trueandnodeId: null. The destination page has no annotations.Repro: 1. create_page A and B. 2. create_artboard on A, write_html a child, annotate it. 3. move_nodes the artboard to B. 4. get_annotations on B → []; on A → one detached note.
Workaround: Before moving, read each target's layer name (get_node_info), move, re-annotate by name/id on the new page, then delete_annotations on the source page by id.
Impact: Reorganising a documented project into pages silently loses all notes unless the agent rebuilds them; detached notes also cannot be deleted by
refs("Detached #1" not found), only by id.Filed from PaperCraft 0.7.2 (macos).