I would bet that these detentions have more to do with our own detention of five IRGC cadres in Iraq and a certain IRGC general in Turkey than anything else.

IMO the Iranians are among the world's most cynical political players. They were more than happy to take Israeli and American antitank missiles when they needed them in the 1980s, and to make a deal with the apostate heretic Saddam when the army told them to in 1988 even though it killed Khoemeini. No doubt certain elements would love a war with the U.S. but the majority of the Iranian power establishment are Stalinists rather than Trotskyists, to abuse an old horse once again.