As I said, it’s unpredictable.
However, putting a warship in between China and Taiwan in international waters could pose a problem. Is China really going to fire on a warship?
Iran or China will sink at least one carrier in the next five years, unless the US empire collapses first.
If things get really bad in the U.S. domestically (migrants, crime, mostly peaceful riots, etc.), and our economy and finances are teetering, and our military is depleted sending so much to Ukraine and Israel ... then yes, China might chance firing on our warship.