AI coding and rediscovering flow

Two years ago I was burned out on coding. This summer I've had multiple 16-hour programming sessions that left me energized. What happened?