claude-code - 💡(How to fix) Fix [Bug] Claude Code desktop app crashes on startup in Code mode with exit code 1 [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#51727Fetched 2026-04-22 07:54:26
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description


Claude Code desktop app (Code mode) crashes immediately with exit code 1 on every attempt. Terminal version works fine.

System: iMac 24-inch 2024, Apple M4, macOS Sequoia 15.7.5

Desktop app version: unknown (cannot access due to crash)

What was tried:

  • Full disk access granted in System Settings
  • Clean reinstall of desktop app
  • Deleted ~/.claude and ~/.claude/projects
  • claude auth logout and claude auth login (login succeeds, crash persists)
  • Removed duplicate npm installation via sudo
  • claude install (native 2.1.116 installed)
  • claude doctor: no errors, single installation, OAuth auth confirmed
  • macOS updated to 15.7.5
  • which -a claude shows only one binary at ~/.local/bin/claude
  • Console.app shows no crash logs when app fails

Observation: Chat mode in the desktop app works fine. Only Code mode crashes. Terminal version of Claude Code works perfectly.

--

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.116
  • Feedback ID: e7d3f76e-691f-42d9-a307-ceb2bf1b87c6

Errors

[]

extent analysis

TL;DR

The Claude Code desktop app's Code mode crash may be related to a specific configuration or dependency issue, and troubleshooting the differences between Code mode and Chat mode, as well as the terminal version, could help identify the root cause.

Guidance

  • Investigate the differences in configuration or dependencies between Code mode and Chat mode in the desktop app to understand why Chat mode works fine while Code mode crashes.
  • Compare the environment and setup of the terminal version of Claude Code, which works perfectly, to the desktop app's Code mode to identify potential discrepancies.
  • Consider running the desktop app from the terminal with additional logging or debugging flags, if available, to capture more detailed error information.
  • Review the claude doctor output again to ensure no potential issues were missed, even though it reported no errors.

Example

No specific code snippet can be provided without more information on the app's internal workings or error messages.

Notes

The lack of crash logs in Console.app and empty error array ([]) limits the ability to diagnose the issue directly. The fact that Chat mode works and the terminal version has no issues suggests the problem might be specific to the desktop app's Code mode implementation or its interaction with the system environment.

Recommendation

Apply workaround: Given the information, a direct fix is not clear, but troubleshooting the differences between the working components (Chat mode and terminal version) and the non-working component (Code mode in the desktop app) is a logical next step to identify and potentially mitigate 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