Files
chess-project/src
Stefan 33489d7029 fix: Undo button now properly truncates move history
- Added UNDO_TO_MOVE action that both navigates AND truncates history

- Added undoToMove() function to OpeningTrainingContext

- Updated handleUndoDeviation to use undoToMove instead of navigate

Previously, the Undo button only navigated back but didn't remove

the deviation moves, so the session remained in off-book state.
2026-01-04 11:28:23 +01:00
..