Why: This would help to focus on the running task How: I think some javascript or css could do the trick. Bonus: Collapsed state should be preserved when reloading the page. Bonus Bonus: Some Javascript foo to autoscroll to the bottom to see whats going on with your build.
If the build is finished all tasks should be expanded.