To me it sounds as if the AI is relatively smart.
Keep in mind that Tashas Hideous Laughter is a quite powerful cc with the drawback that it can break when the target takes damage. So the main uses of that spell are either to keep an enemy out of the fight untill you dealt with his allies or to buy yourself time to run past an enemy. In both those situations you don't want friendly npcs to break the spell.