"Sitting for more than 1 hour has been shown to induce biochemical changes ... leads to the deposit of fats in adipose tissue rather than these being metabolized by muscle, ... heart disease risks". Read the original article for details.
Apparently we have a tradeoff between staying in "flow" and staying healthy. Since that seems to be the choice at the moment then I'll move every half an hour and worry about my productivity using other hacks.