alonso.torres 24e389b763 🐛 Give a synced grid parent cells for the children a sync left
A sync places a resized copy's subtree under the synced parent with its
old placement. When the sync has just given that parent the grid of a
new main, as after a swap, its children are still the old ones and the
grid has no cells for them, so the layout of the placement failed on an
in-flow child without a cell.

The parent used for that placement now assigns cells to the children
the sync left.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):

|                             :world | :baseline |    :now |   :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
|  deepest-edit-through-three-levels |    35.215 |  20.154 |  21.936 |   0.57 |
| edit-through-a-chain-of-dependents |    68.931 |  39.517 |  41.605 |   0.57 |
|         library-update-into-copies |    83.083 |  49.772 |  51.257 |    0.6 |
|        main-edit-among-many-shapes |     4.837 |   2.167 |   2.466 |   0.45 |
|           main-edit-into-10-copies |      1.79 |   1.008 |   1.062 |   0.56 |
|          main-edit-into-100-copies |    15.415 |  10.197 |  11.064 |   0.66 |
|         main-edit-into-1000-copies |   153.086 | 102.045 | 108.458 |   0.67 |
|         variant-switch-into-copies |    32.052 |  21.435 |  22.715 |   0.67 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:47 +01:00
..
2022-11-08 13:02:14 +01:00