Desktop app's bundled Claude Code 2.1.111 exits with code 1 immediately on prompt submission (macOS)

Resolved 💬 6 comments Opened Apr 22, 2026 by SPACE-RE 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?

What's Wrong?

Claude Code process exits with code 1 immediately when launched from the Claude desktop app. Occurs on every prompt submission in every project folder (including fresh empty folders). Terminal-launched Claude Code 2.1.104 works perfectly with the same account, config, and auth state.

Environment

ProductName: macOS
ProductVersion: 26.3.1
ProductVersionExtra: (a)
BuildVersion: 25D771280a

  • Desktop app bundled Claude Code: 2.1.111
  • Terminal Claude Code (homebrew): 2.1.104 — WORKS FINE
  • Node: v20 (also reproduced on v25)
  • Account: Claude Max

What I tried (all failed to resolve)

  • Downgraded Node 25 → Node 20 LTS via nvm
  • Deleted ~/Library/Application Support/Claude/claude-code/ to force redownload
  • Ran claude doctor directly on the bundled 2.1.111 binary — reports healthy
  • Checked for Gatekeeper quarantine (none present)
  • Verified ~/.claude.json and ~/.claude.json.backup are both valid JSON
  • Disabled all plugins by resetting ~/.claude/settings.json to empty
  • Confirmed terminal claude works in the same folder with the same config

Note

Terminal Claude Code at the homebrew-installed 2.1.104 works perfectly with identical config, auth, and project folder. Issue is specifically with the desktop-app bundled 2.1.111.

What Should Happen?

Claude code executes prompt

Error Messages/Logs

## Log excerpt (~/Library/Logs/Claude/main.log)
2026-04-22 14:17:16 [info] Using Claude Code binary at: /Users/space/Library/Application Support/Claude/claude-code/2.1.111/claude.app/Contents/MacOS/claude
2026-04-22 14:17:16 [error] Session local_c922f2f2-44ef-45b2-9fa5-e7d8e3f620c7 query error: Claude Code process exited with code 1
at sIr.getProcessExitError (/Applications/Claude.app/Contents/Resources/app.asar/.vite/build/index.js:390:8041)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

No stderr output captured — child exits before writing anything.

Steps to Reproduce

Reproduction

  1. Open Claude desktop app
  2. Start a new Claude Code session pointed at any folder (tested fresh ~/Desktop/claude-test and existing project folders)
  3. Submit any prompt (e.g., "hello")
  4. Result: "Claude Code process exited with code 1" immediately, no output

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.104

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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