It’s sort of like prisoners dilemma with yourself except current you never has immediate reason to cooperate with future you
Only decent fixes I’ve found so far that worked: -working alongside other people (much easier to maintain consistent routines that way) -enjoying what I’m doing
The latter was main thing I did; I found things I enjoyed learning and that gave me things to do that were fulfilling to work on long term such that I could trust future me to continue
Then when I wake up the next day I am like "who messed up all of my stuff yesterday? Glad that wasn't me."