In a ZSH terminal with prezto enabled, starting a new subshell shows the command not found: compdef error message.
>>> wt new zsh-init-issue
Entering worktree: zsh-init-issue
/proc/self/fd/13:2: command not found: compdef
/proc/self/fd/13:2: command not found: compdef
/proc/self/fd/13:18: command not found: compdef
/proc/self/fd/13:2: command not found: compdef
/proc/self/fd/13:213: command not found: compdef
(wt) home%
In a ZSH terminal with prezto enabled, starting a new subshell shows the
command not found: compdeferror message.