You can also interrupt pathfinding with engis on attack move (or SACU/ACU on patrol iirc) and they will lock on to and reclaim a single target using fac attack move range, which can be useful for this scenario.
I just recreated it with Czar. I may be dumb. It happens when 1 hotkey is responsible for several units, and it locks your clicks for you to order with left click. I just had to right click to get out.