[BUG] PATH env var not respected in Claude Code
Resolved 💬 5 comments Opened Apr 2, 2026 by blackbird-mateo Closed May 11, 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?
The MacOS desktop app is not picking up the PATH env in any of the settings.json files. the PATH always defaults to the macOS default.
What Should Happen?
the PATH env var should be picked up from the env field in settings.json and made available to the bash tool
Error Messages/Logs
Steps to Reproduce
- Create a simple executable outside the PATH (just echo hello world)
- set the PATH to this executable in
~/.claude/settings.json - in the Claude desktop app, ask Claude to run this executable
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.90 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗