I'm glad you found a workaround. The game must have just not registered that it was in your character's field of view when they were sneaking (or invisible), but triggering combat updated that.