claude-code - 💡(How to fix) Fix Desktop app's bundled Claude Code 2.1.111 exits with code 1 immediately on prompt submission (macOS) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52143Fetched 2026-04-23 07:35:30
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

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.

Code Example

## 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.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

extent analysis

TL;DR

The issue is likely due to a version mismatch or incompatibility between the desktop-app bundled Claude Code 2.1.111 and the terminal-launched Claude Code 2.1.104, causing the Claude Code process to exit with code 1 when launched from the desktop app.

Guidance

  • Verify that the desktop-app bundled Claude Code 2.1.111 is compatible with the current environment and configuration.
  • Try downgrading the desktop-app bundled Claude Code to version 2.1.104 to match the working terminal-launched version.
  • Check for any differences in configuration or environment variables between the desktop app and terminal launches that could be causing the issue.
  • Review the main.log file for any additional error messages or clues that could help identify the root cause.

Example

No code snippet is provided as the issue seems to be related to version compatibility rather than a specific code error.

Notes

The issue is specific to the desktop-app bundled Claude Code 2.1.111 and does not occur with the terminal-launched Claude Code 2.1.104, suggesting a version-specific problem. The claude doctor report showing a healthy status and the lack of stderr output captured suggest that the issue may be related to the interaction between the desktop app and the Claude Code process.

Recommendation

Apply workaround: Downgrade the desktop-app bundled Claude Code to version 2.1.104 to match the working terminal-launched version, as this has been confirmed to work with the same configuration and environment.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING