Then why do you speak definitively as if you do?
While others report that he was:
Sounds like he was in the editing room the whole time. "But if he wasn't in charge of the final edit that means he was FIRED!" No, it means he didn't have final cut and that Gilroy was simply the personification of the studio getting the finished film they wanted which was literally no different that Lucas cutting ESB the way he wanted after Irvin Kershner did his job and offered his "input."
col·lab·o·rate
kəˈlabəˌrāt
verb
work jointly on an activity, especially to produce or create something.
Once again *by definition* the fact that Edwards was directing Vader in the 11th hour proves he was there to the end and
collaborating with anything Gilroy might have been working on at the same time. If someone is demoted from a SW picture or fired in disgrace they don't get to direct DARTH VADER and PRINCESS LEIA as severance pay.
Keeping Gareth onboard to personally oversee two of LFL's biggest crown jewels irrefutably proves that LFL still trusted him to deliver the goods and simply helped him out when they added his previously established collaborative partner Tony Gilroy.
Well he already has another cameo in The Last Jedi which he jokingly considers "the grandson of the Rebel who pulled the lever in RO" so his standing with LFL appears to remain as amicable as ever.