I think this is a bit different. I wouldn't put up with it if the behavior was persistent.Anytime I sit down there are several of my hens that will aggravate the fool out of me, some by pecking me and some that won’t shut up. Most of the time they are either looking for a treat or plain old attention. The ones who want attention always get it. They will peck at me when I’ve got one in my lap and I have to shoo them off. Sometimes their pecks hurt, even through my shorts or shirt. And heaven forbid if the notice a scab or spider vein on my leg. Good gosh. But when I have one that just won’t quit I keep pushing her away, again and again, until she wanders on off.
An attention peck is fine. They don't have hands and that's one of the things their beak is for. I don't mind a warning peck either. It doesn't happen unless I'm interfering.
It takes quite few months for the cockerels here to moderate some of their attention and eating pecks.