mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-18 16:14:57 +00:00
* Fuzzer: undo checks follow the bounded undo history The undo history drops its oldest steps past 100 entries or 128 MB of snapshots (#1263). The command-sequence fuzzer still compared "undo everything" with the episode's starting workbook, so any episode whose snapshots passed the budget failed with "undoing all N steps doesn't give back the starting workbook" although undo worked (seeds 104, 110 and 163 at 80 steps: a column inserted next to whole-column borders, or rows deleted after filling whole columns, each made a 100 MB step). The harness notices when an undoable command changed the workbook without the history growing, and then compares with the state before the oldest step still in the history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fuzzer: undo and redo checks follow the reachable history boundary Review of #2332. The harness now tracks the oldest state the undo history can reach instead of a trimmed flag: whenever the history's oldest entry changes without it emptying in between, the history dropped a step, and undoing everything stops at the new oldest entry. That boundary is kept when an edit.undo in the sequence uses up the retained history before the episode ends, which used to fall back to the episode's start and report a false undo mismatch. The redo round trip no longer assumes n undos leave n redo entries: the redo history is bounded too, so when it dropped the first step undone, redo is expected to stop at the oldest entry it kept. --------- Co-authored-by: nihilist-narwhal <240798405+nihilist-narwhal@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>