This happens way too often with the Mesmer Dueling X trait (Deceptive Evasion).
I have noticed if I am in range for Illusionary Leap/Swap then the summoned clone will almost always attack. If another target is closer than my target my clone will attack the closest target, which is very annoying but not the topic of this thread. If I am outside of range 600 dodging to create a clone is at best 50-50. Sometimes they attack, and sometimes they just stand there. It would appear that at a certain range they don’t get any targeting information and simply stand there as a clone since you are still in combat. Shattering these clones causes them to get killed, I am unsure if they even create the shatter effect since they have no target.
I do not recall any direct experience for the OP’s examples, but I will try to come back with a few screen shots later today.