Nodes should only be collapsed when the user decides to collapse them. It starts to feel onerous to have to expand nodes within your working document, they are more useful open. I'm not sure about the sidebar behavior yet; for this issue I am referring to the main content only.