It wasn't exactly the last minute, but with Trump's looming 20:00 EDT (00:00 GMT on Wednesday) deadline to reach a deal or the US would launch massive strikes against Iranian energy and transportation infrastructure, it came pretty close.
All of this is contingent on Iran also suspending hostilities and fully opening the Strait of Hormuz to commercial shipping traffic, which the regime says it will do, while insisting it still exerts "dominion" over the waterway.