I did it again- baked sweet potatoes, turned off the oven when the were done, then left them in the oven overnight. I was making them for baby food. I have to throw them out, don't I?
They should be ok but smell and taste them. If they pass your own senses' test they will be fine
Just give them a good chill in the fridge. I do this one, too.
Cooked vegetables are considered a TCS food (time and temperature controlled for safety). After four hours of being in the "temperature danger zone" (41-135 F), all food should be thrown out or composted. You can't always tell if a food is contaminated by taste or smell. Better safe than sorry, especially when it comes to baby food!!!
If it smells and tastes okay, I'd say that eating it is an acceptable risk.