[BUG] Claude Code Desktop not respecting environment variables from ~/.zshrc

Resolved 💬 3 comments Opened Apr 7, 2026 by neilkakkar Closed Apr 7, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Looks like a regression in the latest desktop version - it always gets the basic bash PATH variable so almost nothing is found on PATH, and nothing works before prefixing PATH to commands.

What Should Happen?

PATH is loaded correctly.

Error Messages/Logs

Steps to Reproduce

  1. Open new session (in worktree mode)
  2. ask it to check npm

It will show up as not found

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.5

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗