Merge "Refuse to open history if in ANIMATE state." into pi-dev