Updating shapes reassigns the cell positions of the grids among them.
That reassignment ignored the update's touched options, so a layout
reflow, which updates every layout without touching it, marked the cells
of a copy grid as its own whenever they moved, as when a copy child
switched to a hidden variant left its cell.
Each grid reassigns its cells with the touched options of its own
update. The model expects a copy grid's direction change to author its
cells only when the change itself moves auto items, not when the reflow
after it makes a cell manual.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| world | baseline | now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels | 35.215 | 21.005 | 0.60 |
| edit-through-a-chain-of-dependents | 68.931 | 39.064 | 0.57 |
| library-update-into-copies | 83.083 | 48.602 | 0.58 |
| main-edit-among-many-shapes | 4.837 | 2.246 | 0.46 |
| main-edit-into-10-copies | 1.79 | 0.984 | 0.55 |
| main-edit-into-100-copies | 15.415 | 10.081 | 0.65 |
| main-edit-into-1000-copies | 153.086 | 100.708 | 0.66 |
| variant-switch-into-copies | 32.052 | 20.063 | 0.63 |
AI-assisted-by: claude-opus-5-5