Article 1 of the Islamabad MoU:
"The Islamic Republic of Iran and the United States, together with their allies
in the current war, declare upon the signing of this Memorandum of
Understanding an immediate and permanent end to the war on all fronts,
including Lebanon, and undertake that from now on they will not launch any
hostile action against each other, and will refrain from the threat or use of force against each other. The final agreement will confirm the provisions of this Article and the remaining Articles."
Israel broke the terms of this article before any hostile actions occurred in the Strait. Could Iran have been patient and shown leniency to its enemies? Sure, I suppose. But it's ultimately their prerogative, in view of Tel Aviv's discordant action.