At
the end of her guest commentary on round 2 of the Olympiad, when asked about the chance of a match vs Yifan, Judit said it might happen if there are nice location and conditions offered
(Btw, in that video, she explained a cute sharp game of herself in that round.) I think at that point she already knew she would retire; perhaps that match just wouldn't count as 'competitive chess'.