feat(undo): add optional undo/redo history size limit and disable buttons when unavailable
feat(undo): add optional undo/redo history size limit and disable buttons when unavailable: a task in life-science-SWE1.0 (Harbor dataset). Title: feat(undo): add optional undo/redo history size limit and disable buttons when unavailable
The task
**Title:** feat(undo): add optional undo/redo history size limit and disable buttons when unavailable`
Part of scalingX/life-science-SWE1.0.