My windshield fogged up rather suddenly for the first time the other day too. But as soon as I turned on the defroster it cleared right up. (I generally keep that toggled off; I think this is the first time I turned it on in the two months that I’ve owned the car)
Did the problems that you to above had occur while the defroster was running?