[BUG] Claude Code process exits with code 1 in Claude desktop app Code tab (SSL trust failure)
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?
Every new session in the Claude desktop app Code tab immediately crashes with "Claude Code process exited with code 1".
macOS system logs show repeated SSL certificate trust failures:
- Trust evaluate failure: [leaf AnchorTrusted]
- Trust evaluate failure: [leaf TemporalValidity]
- Trust evaluate failure: [leaf ServerAuthEKU]
Claude Code works fine in the native Mac Terminal, even without NODE_TLS_REJECT_UNAUTHORIZED=0. The desktop app does not pick up NODE_TLS_REJECT_UNAUTHORIZED=0 from ~/.zshenv or from the env field in ~/.claude/settings.json.
Colleagues on the same codebase are not affected.
What Should Happen?
Claude Code should start and respond normally in the Claude desktop app Code tab, just as it does in the native Mac Terminal.
Error Messages/Logs
Claude Code process exited with code 1
macOS system log (via `log show --predicate 'process == "claude"'`):
Trust evaluate failure: [leaf AnchorTrusted]
Trust evaluate failure: [leaf TemporalValidity]
Trust evaluate failure: [leaf ServerAuthEKU]
Trust evaluate failure: [leaf OtherTrustValidityPeriod SystemTrustValidityPeriod SystemTrustedCTRequired]
Steps to Reproduce
- Open Claude desktop app on macOS
- Click the Code tab
- Click New Session
- Type anything and press Enter
- Claude Code immediately crashes with "Claude Code process exited with code 1"
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.114 (Claude Code)
Platform
Other
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- Claude Code works fine in native Mac Terminal, with or without NODE_TLS_REJECT_UNAUTHORIZED=0
- Setting NODE_TLS_REJECT_UNAUTHORIZED=0 in ~/.zshenv and in ~/.claude/settings.json env field did not fix the desktop app
- Colleagues using the same codebase are not affected
- Personal MacBook Pro 14", no VPN or corporate proxy running
- node version: v24.12.0
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗