I've been lucky to only have this happen to me once, but yes, it was incredibly annoying to have my ally walk right through my moon beam and then have then whole Harper ambush team go hostile.
So yeah, better AI pathing or if that is too tricky (and I can easily imaging being so) a short invincibility window post combat would go a long way.
Edit: This would also help keep AI from killing themselves as well. Damn near killed Halsin at one point in Act 2 when he walked through my Wall of Fire after a quest required fight. He was down to 4hp when the burning stopped. Thankfully he didn't aggro at that time.
Last edited by Slayen; 23/08/23 08:12 AM.