[BUG]

Resolved 💬 2 comments Opened May 10, 2026 by JainSoftware Closed Jun 9, 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?

App version: Claude for Mac 1.6608.2
OS: macOS

Issue: All SSH remote sessions crash immediately with "Claude Code process exited with code 1"

Root cause from logs:
[UtilityProcess stderr] Fatal error: ECONNREFUSED 127.0.0.1:3845

The local relay service that should listen on port 3845 never starts.
lsof -i :3845 returns empty — nothing listening.

Already ruled out:

  • Port conflicts (nothing on 3845)
  • Network/firewall config
  • Remote server issues (CCD CLI 2.1.128 runs fine manually, exit 0)
  • MCP server issues
  • Large transcript files
  • Plugin config issues

Affects all SSH servers. Issue is consistently reproducible.

What Should Happen?

SSH remote sessions should connect successfully. The local relay service should start and listen on 127.0.0.1:3845 so the remote CCD CLI can communicate back to the desktop app.

Error Messages/Logs

[UtilityProcess stderr] [70527] Connection error: [TypeError: fetch failed] {
  [cause]: Error: connect ECONNREFUSED 127.0.0.1:3845
[UtilityProcess stderr] [70527] Fatal error: [TypeError: fetch failed] {
  [cause]: Error: connect ECONNREFUSED 127.0.0.1:3845

Session query error: Claude Code process exited with code 1
[SSH] Using remote spawn function on vigilxv2@moon15.mnchost.com 
(cli: /home/vigilxv2/.claude/remote/ccd-cli/2.1.128)
[CCD] SSH: rewrote 4/4 plugin path(s) to remote-synced dirs

Verified: lsof -i :3845 returns empty (nothing listening on Mac)
Verified: remote CCD CLI binary runs fine manually (exit code 0)

Steps to Reproduce

  1. Open Claude for Mac 1.6608.2
  2. Connect to any SSH remote server
  3. Start a new session and type any message (e.g. "hi")
  4. Session immediately crashes with "Claude Code process exited with code 1"
  5. Reproducible on ALL SSH servers consistently

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.128 (Claude Code)

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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