Selection that survives undo
Filed as “:bug: Selection State Not Saved in Undo/Redo Stack”
Closed · Completed27 April 2026
Undo puts the square back and forgetsrestores the selection.
Undo in Penpot restored what you had changed but not what you had selected, so every undo ended with a round of reselecting by hand. The issue asked for the selection to travel with each entry in the history stack: undo returns the selection from before the action, redo the one from after it. Kamal’s recording made the case with four coloured squares.
It was moved to Penpot’s Taiga backlog and labelled a good first issue for outside contributors. Two volunteered in early 2026, and the issue was closed as completed on 27 April 2026.
Specimen 1
Four squares, a history, and what undo selects
This specimen runs with JavaScript; the recording below shows the original problem.
Thank you for the suggestion! We have added it to our backlog on Taiga to be considered in the future.