A snack bowl 1 arm's reach from your keyboard means the room has already made the next move for you.
Slide the bowl out of sight and the craving may still come, but now it needs an active search instead of an automatic reach. That small delay is the whole game, because habits feed on whatever path is easiest.
Change the object, place, or time that starts the behavior. Willpower holds up better once the room stops voting first.