Codex App worktree setup does not seem to load rc files (fine during tool calls)
Resolved 💬 1 comment Opened Mar 16, 2026 by lgo Closed Apr 2, 2026
What version of the Codex App are you using (From “About Codex” dialog)?
26.311.21342 (993)
What subscription do you have?
Pro
What platform is your computer?
MacOS
What issue are you seeing?
When using a worktree environment, I cannot seem to get it to respect my zsh shell. Codex has the correct shell setup after the worktree is setup, and is able to navigate binaries and such, but during worktree setup there is quite literally nothing available.
echo $PATH
echo $SHELL
and I only saw
+ echo /usr/bin:/bin:/usr/sbin:/sbin
+ echo /bin/zsh
/usr/bin:/bin:/usr/sbin:/sbin
/bin/zsh
What steps can reproduce the bug?
(will need to try more to figure out why)
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗