clone state correctly when opening new shell window.