Debug history mode polluting the editor's undo manager