Diplomatically, we saw Lebanon, Qatar, and Saudi Arabia expelling Iranian diplomats (some even threatening war with Iran). And the entire gulf region unite against Iran. All while Iran's allies were mostly passive.
It's quite likely that Iran would need to deal with the mess both internally (as the power grab in the leadership vacuum could take place), and externally with the neighbors it bombed. Iran needs to make it appear as a win internally, and that's something that would affect any long term agreement.
Regardless, whether it's a win to ETTHER side remains to be seen when a more permanent agreement is signed. If for example Iran actually manages to impose a fee on passing ships, then that's a major achievement for Iran, and could create a dangerous pretendant for other regions (like the strait of Malacca in Indonesia, Bab El-Mandeb and even the South China sea.