At the end of January, following a 5-3 home defeat to Villarreal, the 44-year-old announced that he would be leaving his role as manager this summer.
Xavi said at the time that Barcelona needed a change of direction, but the team's performances and results since his shock statement have improved.
The Catalan outfit have lost their last two matches, being eliminated from the Champions League by Paris Saint-Germain on April 16 courtesy of a 4-1 home defeat in the second leg of their quarter-final.
Barcelona then lost 3-2 at Real Madrid in El Clasico on Sunday evening, with the result all but ending their already-slim La Liga title hopes.
Xavi 'set to stay in charge of Barcelona beyond the summer'However, the Catalan side had been on a 13-match unbeaten run in all competitions ahead of the contest against PSG, and their spot in the quarter-finals of the Champions League was seen as a positive due to their recent struggles in the competition.
Barcelona president Joan Laporta and sporting director Deco have been working to convince Xavi to reverse his decision and stay at the club.
Meanwhile, the club's vice-president Rafa Yuste said at the end of last month that Xavi was wanted as part of «a long-term project» at Camp Nou.
According to Italian journalist Fabrizio Romano, following a meeting on Wednesday evening, Xavi has changed his mind and agreed to remain as Barcelona boss.
Barcelona could allegedly make an announcement on Thursday confirming that their current manager will stay in charge beyond the end of the campaign.
Is Xavi's Read on sportsmole.co.uk