mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-30 05:37:00 -06:00
- Macros::estimated_bytes counted names, descriptions and step counts but not step parameters, so each save, rename or delete (which copies the macro list an undo step shares) could keep a 4 M-character parameter per step unseen by the 128 MB budget. It now counts each macro's JSON as it is written, without building it. - This changes the macro storage layer below #2152, the smallest change that makes the budget hold (answers CodeRabbit thread 4366060037). - Test: re_saving_a_large_macro_keeps_the_undo_history_within_its_budget.