Only sticking point is I would imagine she could control the barbed comments she points directly at him, especially as this isn't the first time she's said something that could easily be construed as mean-spirited or even a put-down, when he's objectively done nothing wrong.
But I see it more as an example of the ongoing trend of female leads belittling the male lead in a way that's meant to be endearing or even outright attractive for the reader, so "whatever gets your engine going", I guess is the intent.