[BUG] Code tab: local sessions crash immediately (exit code 1) — ccd_session/ccd_directory IPC failure

Resolved 💬 8 comments Opened Apr 25, 2026 by ib-mia Closed Jun 18, 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?

---
Environment

  • Claude desktop app: v1.4758.0
  • Claude Code binary: 2.1.119
  • macOS: 14.1 (Darwin 24.1.0)

What happens
Every session started from the Code tab crashes in under 1 second with "Claude
Code process exited with code 1", no output. Has been broken since at least
April 19, 2026. Chat and Cowork (VM) sessions work fine.

Root cause identified
The desktop app passes two internal MCP servers — ccd_session and
ccd_directory — to the binary on startup. The binary tries to connect to these
IPC channels, fails immediately, and exits with code 1. From main.log:

[CCD] [replaceRemoteMcpServers] Calling SDK with 9 total servers {
serverNames: ['ClickUp', 'Google Drive', 'Slack', 'Claude in Chrome',
'mcp-registry', 'Claude Preview', 'ccd_session',
'ccd_directory', 'scheduled-tasks']
}
Session <blob> query error: Claude Code process exited with code 1
[CCD CycleHealth] unhealthy cycle (0s, hadFirstResponse=false,
reason=no_response)

After the crash, subsequent IPC calls fail:
[account] Account details not yet available, waiting for IPC...
[account] User logged out during IPC wait, stopping early

What confirms it's the IPC, not the binary
Running the binary manually with any combination of flags (including
--permission-mode acceptEdits, --setting-sources=user,project,local,
--plugin-dir, from the worktree directory) works perfectly. The binary only
crashes when the desktop app spawns it — the only untestable difference is the
ccd_session/ccd_directory socket arguments passed internally.

---

What Should Happen?

interaction without an error

Error Messages/Logs

Steps to Reproduce

Steps to reproduce

  1. Open Claude desktop app
  2. Click the Code tab (</>)
  3. Open or create any session in any folder
  4. Session immediately shows "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.119

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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