This is exactly why the rules of war are to never accept a ceasefire, but to negotiate an end to a war. Until the deal is signed you keep fighting (see Russia/Ukraine).
There are some big differences between Russia/Ukraine war and Israel/Irán war.
The first one it is a classic invasion from Russia to Ukraine. Even if Ukraine is reluctant, they are doomed to fight to the last man or being a province of Russia.
The second one it is the unwilling support of EU. Those mighty UUVs and UAVs have been designed, funded and even probably components assembled in whole EU. And even more, EU has said clearly that it won´t stop until europeans demands are token in consideration by Russia.
Even if China helps (something they´re doing without any doubt), China would never put in doubt their commitment to their core national interests to save Irán.
But now that appears to have been averted and the U.S. doesn’t have to negotiate with a sword above its head. Iran has lost its critical leverage.
There are more factors than oil price alone.
The cost of having 2 carrier strike groups and half a hundred of fighters (if not more) and tankers and troops is carefully hidden but deffinitively a dead end street not only POTUS but also Pentagon.
If the war continues in this way in two years Taiwan will give their own keys to Xi in a similar way than UK did with Hong Kong. That is the most plausible explanation why US is expending a money they don´t have to produce semiconductors in mainland.
But the worst part is that this war marks the beginning of a military nuclear program.
No one knows where the enriched uranium is, and Iran holds the keys to replicating and tripling enrichment facilities throughout the country.
There are good reasons to keep frozen the conflict. And time is running against US. Land blockade is not working, Irán can blackmail other partners in GCC to mix their oil and economic cost to US will ruin whatever prospect to their military goals.
I don´t forget one of the main principles of Tsu Tzu teachings;
"Victory without a fight: The ultimate objective is to subdue the enemy through strategy, unraveling their plans or alliances before engaging in battle."