I know full well that the PRC isn't a democracy. But the point is that Xi was facing some headwinds, however slight, because of how poorly he's handled some recent domestic issues. There was also unease with his more bellicose and aggressive external relations posture. Point is that things aren't going so well in the PRC and there is enough discontent to at least give some party cadres second thoughts about extending his rule. That's all gone now as he's going to focus on ratcheting up the aggressive rhetoric as a way of clamping down even more than before.
I think this is a strawman argument to criticize Pelosi. Xi is a classic strongman and his hold on power is not a function of external events, any more than Putin.
If he intimidated Pelosi into not visiting Taiwan, he's stronger. If Pelosi visits anyway, he's stronger. He's built his system of government so that he controls the outcome in all circumstances, for his own benefit. Just like Putin, he controls the narrative, and the narrative never favors anyone else.
Why do you think Trump admired and envied these guys? He wished he could do that in the US, and tried on Jan 6, but unlike China and Russia, American citizens are free, and didn't cooperate.