mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
When removing the last swap group, drop touched instead of retaining an empty set. A main clone then uses the same representation as set-touched; a later move and undo can restore its exact prior state (F156). The unit and move regressions fail before the change. The swap suite and original shrunk program pass 48 tests and 184 assertions. Common lint and format pass. Benchmark ratios: mains 0.49/0.56/0.79; levels 0.66; chain 0.82; library 0.78; many shapes 0.92; switch 1.02, no regression flags. AI-assisted-by: GPT-6