iterm2 tab and window titles remove current process information
In my .zshrc I uncommented the line:

DISABLE_AUTO_TITLE="true"


This keeps the process from being put into the title because it's not changing the title automatically. The precmd function is called regardless of this setting so in there I change the titles manually.