Green’s Dictionary of Slang

cob n.5

In phrases

have a cob on (v.) [? dial. cob, to strike or cob a lump, a large piece, thus cf. SE colloq. phr. have a chip on one’s shoulder]

[1930s+] to be in a bad temper, to be annoyed; thus cobby adj., angry.