SSH tabs show incorrect 'user@host:path' title
When opening a new tab the 'user@host:path' title is incorrect in certain conditions:
- when remotely logging in as root, the titlebar correctly switches to purple, but it still reads the old title.
- when the shell is set to Zsh, new tabs inherit the title of the last open tab.
- when the shell is set to Zsh, logging out of an SSH session still shows the old title.