Code mode crashes instantly (exit code 1) after Desktop app update
Resolved 💬 4 comments Opened Mar 23, 2026 by devindice Closed May 23, 2026
Description
After updating Claude Desktop, Code mode (local sessions) crashes instantly with exit code 1. Chat/Cowork VM sessions work fine. The same Claude Code binary version (2.1.78) works on another Mac.
Environment
- Claude Desktop: v1.1.7714
- Claude Code binary: 2.1.78 (embedded, downloaded by Desktop)
- Claude Code CLI: 2.1.81 (works fine)
- OS: macOS (Apple Silicon, Darwin 24.5.0)
- Started: March 22, 2026 (after Desktop app update)
Symptoms
- Every local Code mode session crashes immediately (0 seconds, no first response)
- Log shows:
Session local_XXXX query error: Claude Code process exited with code 1 [CCD CycleHealth] unhealthy cycle ... (0s, hadFirstResponse=false, reason=no_response)- Cowork VM sessions launch and run successfully
- Binary runs fine from terminal (
claude --versionreturns 2.1.78,--output-format stream-jsonmode works)
What I tried (none fixed it)
- Full quit + relaunch
- Sign out and back in
- Check for updates
- Cleared
~/Library/Application Support/Claude/claude-code/(re-downloaded successfully, same crash) - Cleared all 105 persisted code sessions in
claude-code-sessions/ - Cleared local-agent-mode session data (local_* dirs + debug/)
- Verified binary is correct architecture (darwin-arm64) and runs from terminal
- Verified config JSON files are valid
- No crash reports in
~/Library/Logs/DiagnosticReports/ - Confirmed same binary version (2.1.78) works on another Mac
Relevant logs
[info] Using Claude Code binary at: .../claude-code/2.1.78/claude.app/Contents/MacOS/claude
[error] Session local_XXXX query error: Claude Code process exited with code 1
[info] [CCD CycleHealth] unhealthy cycle for local_XXXX (0s, hadFirstResponse=false, reason=no_response)
Previous sessions (before March 22 update) worked fine:
[info] [CCD CycleHealth] healthy cycle for local_XXXX (1127s, hadFirstResponse=true)
Notes
- The crash is not reproducible from terminal - running the binary with the same flags exits cleanly
- Something in how the Desktop app internally launches the binary for local Code mode sessions causes the immediate exit
- The Desktop app resolves 1 CC env var from login shell; VM node version is 24.13.0
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗