alonso.torres 03f880979a 🐛 Keep the touched groups of the attributes a swap restores
A swap restores the swap-keep-attrs (layout item attributes and
interactions) of the old head on the new one, but dropped the touched
groups they belong to, so a variant switch left those overrides
unprotected and the next sync overwrote them (#12851). The new head now
takes the touched groups of the restored attributes the old head had.

Develop's layout item switch tests count the touched groups exactly;
making a copy child absolute also authors its geometry here, so they
leave :geometry-group out of the count.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  19.816 |  0.56 |
| edit-through-a-chain-of-dependents |   68.931 |  41.189 |  0.60 |
| library-update-into-copies         |   83.083 |  48.819 |  0.59 |
| main-edit-among-many-shapes        |    4.837 |   2.146 |  0.44 |
| main-edit-into-10-copies           |     1.79 |   0.962 |  0.54 |
| main-edit-into-100-copies          |   15.415 |   9.577 |  0.62 |
| main-edit-into-1000-copies         |  153.086 | 104.859 |  0.68 |
| variant-switch-into-copies         |   32.052 |  21.305 |  0.66 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:46 +01:00
..