The toolbar needs to have Undo and Redo buttons, and hotkeys need to be associated with them. For this to work all changes to the Component and History trees since the component was created or opened need to be tracked.
Icons
Undo: Something similar to the reload icon that was originally used for raw CadQuery scripts. Circular, counter-clockwise arrow.
Redo: Circular, clockwise arrow.
Hotkeys
Undo: Ctrl+Z
Redo: Ctrl+Y or Ctrl+Shift+Z - need to find out if there's a standard for this.
Intro
The toolbar needs to have Undo and Redo buttons, and hotkeys need to be associated with them. For this to work all changes to the Component and History trees since the component was created or opened need to be tracked.
Icons
Hotkeys