mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
In non-linear history a record moves the later states onto the undo side and trims to the History States limit (and the byte budget) at once. A compound command whose later part failed then could not take its first step back when the trim dropped the state it replaced: the fallback Undo landed on the last later state and cleared the rest. Even when that state survived, the oldest states were lost. The latest record now holds the states it evicted until the next change to the list, and History::rollback puts them back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>