Currently you can "fight" with your pet while being stealthed as hunter, this is not how it should be. When pet attacks someone, it should unstealth the hunter.
Issue Timeline
13 Oct 2018 jelzinga_EU created this issue
15 Oct 2018 Arctic triaged this issue
15 Oct 2018 Arctic changed the status of this issue from new to open
18 Oct 2018 Arctic assigned this issue from Nobody to Arctic
25 Oct 2018 Arctic changed the status of this issue from in_progress to resolved
Pre 1.86, you could let your pet attack and remain stealthed. From 1.86: "Pets will now break their controllers stealth when the pet attacks something."