as far as i know, and asked around pets are not supposed to attack you while stealthed. they would come and stand by you and follow you around. however, this felhunter (warlock pet) dispelled me from 20-30 yards away and getting me out of stealth or shadowmeld in this case.
i assume this is a bug
other rogues complained about it also here