Undoing is extremely glitchy

When you undo, sometimes the editor decides to add massive transitions in places and often makes it worse than the mistake you made when dragging that clip into an incorrect video track and replacing a bunch of stuff.

You need to give the specific steps to reproduce the bug.

Also, you should say what version of Shotcut you are using.