I think days......
The dismantling of its defence systems, the panic in Terhan coupled with decapitation of the senior ministry leadership alongside important government institutions makes control increasingly hard for the regime.
I think the lack of good options for Iran has made them separately wave a white flag attempting to get back to the negotiating material but maybe it's just too late?