When the eye is partially open, they are looking for you, but they have not found you yet. Lydia is seen, so she becomes the focus of their combat, but they are still looking for you. Lydia is not a Stealth Character, so she does not fight from a crouched position.
There are better followers for Stealth than Lydia. And, to be really Sneaky, you have to go alone.