I think we've all learn that the hard way.

Also, keep in mind for situations where you do need to fight, you have to engage first before the companion actually does anything for you.