[BUG] Claude Desktop Mac App - Code pane does not respect NODE_EXTRA_CA_CERTS behind corporate proxy
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 Code execution pane in the Claude Desktop Mac app fails with API Error: Unable to connect to API: Self-signed certificate detected when behind a corporate SSL-intercepting proxy. The main chat works fine — only the code pane is affected.
The code pane subprocess does not inherit NODE_EXTRA_CA_CERTS from the parent process. Setting it via .zshrc, .bashrc, launchctl setenv, macOS Keychain (trusted root), or even launching the binary directly with the env var — none of these propagate the cert to the subprocess that powers the code pane.
Workaround that confirms the diagnosis:
Launching with NODE_TLS_REJECT_UNAUTHORIZED=0 makes the code pane work, proving the subprocess is making TLS connections that are intercepted by the corporate proxy but not trusting the custom CA cert:
bashNODE_TLS_REJECT_UNAUTHORIZED=0 NODE_EXTRA_CA_CERTS=/path/to/corp-cert.pem /Applications/Claude.app/Contents/MacOS/Claude --disable-gpu
However, removing NODE_TLS_REJECT_UNAUTHORIZED=0 and keeping only NODE_EXTRA_CA_CERTS causes the code pane to fail again, confirming the subprocess does not inherit the env var.
What Should Happen?
The code execution subprocess should inherit NODE_EXTRA_CA_CERTS (and SSL_CERT_FILE) from the parent Electron process, or there should be a Claude Desktop configuration option to specify custom CA certificates for the code pane.
Environment:
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce:
Be on a network with SSL-intercepting corporate proxy
Open Claude Desktop
Main chat works fine
Open the code execution pane
Any code execution fails with "Self-signed certificate detected"
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude 1.1.2685 (f39a62) 2026-02-10T19:42:56.000Z
Platform
Other
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗