Standalone installer ignores ZDOTDIR and leaves codex off PATH in new Zsh sessions
With an exported ZDOTDIR, a successful standalone install adds its PATH block to ~/.zshrc. Linux Zsh reads $ZDOTDIR/.zshrc instead. The installer's instruction to open a new terminal and run codex then fails.
Steps to reproduce On Linux with Zsh, start in the Codex checkout. This uses a disposable home and starts with the installation directory off PATH.
installer="$PWD/scripts/install/install.sh"
d=$(mktemp -d)
mkdir -p "$d/home/.config/zsh"
printf 'export CUSTOM_ZSHRC_LOADED=yes\n' > "$d/home/.config/zsh/.zshrc"
env HOME="$d/home" ZDOTDIR="$d/home/.config/zsh" PATH=/usr/bin:/bin \
SHELL=/bin/zsh CODEX_HOME="$d/codex-home" CODEX_INSTALL_DIR="$d/bin" \
CODEX_NON_INTERACTIVE=1 sh "$installer"
env HOME="$d/home" ZDOTDIR="$d/home/.config/zsh" PATH=/usr/bin:/bin \
/bin/zsh -ic 'echo "$CUSTOM_ZSHRC_LOADED"; command -v codex || echo missing'
test -x "$d/bin/codex"
Observed On Linux x86_64 with Zsh 5.9, the checkout's offline release fixture ran the installer at de83e7674a69b9ae18544dd1fbf53f31bfe8c640 to completion. It reported adding PATH to $HOME/.zshrc. A fresh interactive Zsh printed yes and missing, even though the installed executable existed.
Expected A new Zsh session that reads the user's configured startup directory should find the installed CLI.
Suggested fix Use ${ZDOTDIR:-$HOME} when choosing the Zsh startup file. Exercise the startup-file selection with a real interactive Zsh and an exported nondefault ZDOTDIR. Profile selection
I added a focused installer regression at main snapshot 44834c5 using the repository's synthetic release fixture and a disposable HOME. With SHELL=/bin/zsh, an empty ZDOTDIR control passes, but a custom existing ZDOTDIR fails on unmodified source: the installer succeeds while $ZDOTDIR/.zshrc receives no PATH block.
The proposed one-line Linux fix selects ${ZDOTDIR:-$HOME}/.zshrc. With that change, the focused test passes. The full test_install_sh.py suite passes 24/24, and sh -n plus git diff --check pass.
This verifies installer profile selection, not a fresh interactive Zsh session; Zsh is unavailable on my test host. The reporter's Linux Zsh 5.9 result remains the shell-level reproduction. I have not tested macOS or a released installer script. I can share the regression and patch if useful.