I really wouldn't re-use compost for crops in the same family (like tomatoes/potatoes). Not only might there be diseases lurking there, but the compost will have given up most of the nutrients required by those plants. Even in open soil, most people avoid re-planting the same crops in the same place each year, and compost in pots runs out of nutrients faster than soil/compost in garden beds.
But you could try try some different crops or plants in the old compost (salad leaves, herbs, baby carrots, flowers, bulbs).