I have this problem all the time. It takes tremendous force on my part to stay on track. All I want to do is call out and stay home. But I can't,I'm second in command here.
I'm glad you discovered the link to your brain fog is eating habits...it always makes things seem so much more manageable when there's a concrete reason for why it's happening.