claude-code - 💡(How to fix) Fix [BUG] Desktop: “Claude Code process exited with code 1” when starting a new project (macOS) [1 comments, 2 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#54126Fetched 2026-04-28 06:38:32
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

  1. See error: “Claude Code process exited with code 1” Please include relevant logs from macOS Console.app around the time the error occurs.

Code Example

Claude Code process exited with code 1
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?

On macOS 15.4.1, Claude Desktop app v1.4758.0, Claude Code v2.1.116 at /usr/local/bin/claude, starting a new project in the desktop app fails with “Claude Code process exited with code 1”. Running claude from Terminal works fine.

What Should Happen?

Claude code should run

Error Messages/Logs

Claude Code process exited with code 1

Steps to Reproduce

  1. Open Claude Desktop app
  2. Start a new project
  3. See error: “Claude Code process exited with code 1”

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

I dont remeber

Claude Code Version

  • Claude Code: v2.1.116

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Environment:

  • macOS: 15.4.1
  • Claude Desktop app: v1.4758.0
  • Claude Code: v2.1.116
  • Claude Code path: /usr/local/bin/claude

Logs: Please include relevant logs from macOS Console.app around the time the error occurs.

extent analysis

TL;DR

The issue might be resolved by investigating the environment or configuration differences between running claude from the Terminal and the Claude Desktop app.

Guidance

  • Verify the execution environment: Compare the environment variables and settings when running claude from the Terminal and the Desktop app to identify any discrepancies.
  • Check permissions and access: Ensure that the Claude Desktop app has the necessary permissions and access to execute claude at /usr/local/bin/claude.
  • Review macOS Console.app logs: Analyze the logs around the time the error occurs to gather more information about the failure.
  • Test with a different Claude Model: Try using a different model, such as a non-default one, to see if the issue is model-specific.

Example

No code snippet is provided as the issue does not imply a specific code-related fix.

Notes

The issue seems to be related to the interaction between the Claude Desktop app and the claude executable, and resolving it may require more information about the app's configuration and environment.

Recommendation

Apply workaround: Investigate and address the environment or configuration differences between the Terminal and Desktop app executions, as this is likely to be the root cause of the issue.

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