mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
A swap back relinks to its near position and clears the swap marker. Sync through the enclosing copy that owns those refs so its content overrides reach the restored head and children. Keep carried overrides and unrelated sibling overrides intact. Portable regression: three failures before the fix, then all assertions pass, including exact undo. Focused JVM and golden checks: 183 tests, 2143 assertions. The original and newly shrunk library programs pass. Live WASM verifies plain and variant swaps, later propagation, carried opacity and an unrelated sibling override. Common/frontend lint and fmt pass. Component benchmark ratios: mains 0.61/0.80/0.85; levels 0.71; chain 0.73; library 0.52; many shapes 0.53; variant switch 0.62. All worlds pass the unchanged baseline gate. AI-assisted-by: GPT-6