Do we have any proof from revelation or ijma, that only leader of muslims leads the prayers when hes around?
If the case is true why does mahdi (Muhammad bin Abdullah ) offer lead of prayer to jesus during his second coming?
Hudhayfah reported that the Prophet (S) said, “Al-Mahdi will turn his face to Jesus when he descends as if water were dropping from his hair, and will say to him, ‘Go ahead and say the prayer. Sirat-al-mustaqim volume 2, narration 257. https://www.al-islam.org/jesus-though-shiite-narrations-mahdi-muntazir-qaim/his-second-coming
while their Imaam will have advanced to pray the Fajr prayer with them, Eesa, the son of Mary, may Allaah exalt his mention, will descend [at the time of the Fajr prayer]. The Imaam will draw backward so that ‘Eesa, may Allaah exalt his mention, would go forward and lead the people in prayer. (Ibn Majah)
Do we derive any rulings from above offer from mahdi?