Claude Code desktop app: process exits with code 1 immediately on every message send
Resolved 💬 8 comments Opened Mar 23, 2026 by alex-lee-moxxi Closed Jun 21, 2026
Bug Description
Claude Code in the desktop app (Claude.app) fails to respond to any messages. Every time a message is sent, the bundled Claude Code process exits with code 1 immediately (< 1 second), with no response.
Environment
- OS: macOS Darwin 24.6.0 (Sequoia)
- Claude Desktop App version: 1.1.7714
- Bundled Claude Code version: 2.1.78
- Installed CLI version: 2.1.81 (works fine from terminal)
Steps to Reproduce
- Open Claude desktop app
- Navigate to the Code mode (sidebarMode: code)
- Type any message and press Enter
- No response is returned
Error Logs (from ~/Library/Logs/Claude/main.log)
[info] [LocalPluginsReader] Found 1 local plugins
[info] [CCD] Using skills plugin at: .../skills-plugin/...
[info] [CCD] Passing 2 plugin(s) to SDK (skills: 1, local: 1)
[info] Using Claude Code binary at: .../claude-code/2.1.78/claude.app/Contents/MacOS/claude
[error] Session local_xxx query error: Claude Code process exited with code 1
[info] [CCD CycleHealth] unhealthy cycle (0s, hadFirstResponse=false, reason=no_response)
Additional Context
- The bundled Claude Code binary works correctly when launched from the terminal with
--printand--input-format stream-jsonflags - Deleting the cached bundle (
~/Library/Application Support/Claude/claude-code/2.1.78/) and letting it re-download does NOT fix the issue - Full reinstall of Claude.app does NOT fix the issue
- Clearing all app caches and data does NOT fix the issue
- The CLI (
~/.local/bin/claude) works perfectly:claude --print "say hello"returns responses normally - Authentication is valid (OAuth token present, API reachable)
- The issue appears to be specific to how the desktop app (Electron) launches the bundled Claude Code binary — something in the Electron launch environment causes the binary to exit with code 1, but I was unable to reproduce this from the terminal with any combination of flags
Workaround
None currently. The CLI works fine but the desktop Code mode is completely broken.
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗