https://en.m.wikipedia.org/wiki/2017_Shayrat_missile_strike
While you are correct it wasn’t a war, but neither is this technically.
1/17/12: "@BarackObama will attack Iran in order to get re-elected."
9/16/13: "I predict that President Obama will at some point attack Iran in order save face!"
11/10/13: "Remember that I predicted a long time ago that President Obama will attack Iran because of his inability to negotiate properly - not skilled!"
"If Kamala wins, only death and destruction await because she is the candidate of endless wars. I am the candidate of peace. I am peace." - Presidential debate, 2024
If you voted for Trump, you voted precisely for this. Every accusation from him is either a confession in disguise or an unfulfilled wish.
It's not random.
There are exceptions -- birtherism comes to mind -- but that's what they are, exceptions. In general, though, accusations from Republicans reliably reflect things they are either already doing, planning to do, or wish they could get away with.
He can just have wanted to punish Iran or something without it being a full blown plan. Trump assassinated an Iranian general during his first term [1].
Maybe Trump will claim the airstrikes were just a joke, like he does when he tells his supporters to use violence towards other Americans. Otherwise, the United States is definitely, unambiguously at war with Iran.