My DS (he's 3) is really hit and miss with tea, and has been for awhile, probably a year or more. He'll eat ravioli and sausages, but everything else depends on the night. Some nights he'll try his tea and eat most of it, other nights he completely refuses to try it. We don't make him eat, but we do try to get him to stay at the table with us while we eat (not always successfully). We don't worry too much - he eats plenty through the day, sometimes I think he is simply too tired or just not hungry. I'm hoping he'll just start eating again one day .
Could have written this exact post, except my dd is 26 months old! One day something will be her favourite and she'll demolish a whole bowl, and the next day it's 'i dont like it!' So frustrating! But as pp's have said, I know with my dd that when she has teeth moving, she likes soft and cold food. She has her 2 year old molars cutting and moving right now, so as hard as it is, I tend to just go with it. She is also asking for milk more often, so I am letting her have it so at least she is getting something into her tummy.

So if anything, I would just follow his lead, and hopefully he'll be back to his usual self soon x