There's an infinity include when doing undo

Thanks for the report, I’ve logged this with the team.
When using the CMD+K, you should be able to undo with no issues!