claude-code - 💡(How to fix) Fix [BUG] Claude Code panel in desktop app crashes immediately with "exited with code 1" [2 comments, 3 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#53751Fetched 2026-04-28 06:48:10
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
1
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

Error Message

Error message shown: "Claude Code process exited with code 1"

Error Messages/Logs

  1. The red error appears immediately: "Claude Code process exited with code 1"

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?

The Claude Code panel inside the Claude Desktop app crashes immediately when starting any new session.

Error message shown: "Claude Code process exited with code 1"

This happens in every project and also outside any project. It started 1-2 days ago. Worked fine before.

Environment:

  • macOS
  • Claude Code CLI version: 2.1.119 (just updated from 2.1.104)
  • Desktop app: latest
  • Subscription: Claude Max

Things I tried that didn't fix it:

  • Updated Claude Code from 2.1.104 to 2.1.119
  • Cleared old Keychain entries (Claude Safe Storage, Claude Code-credentials, etc.)
  • Logged out and logged back in via terminal (/login successful, recognized as Claude Max)
  • Restarted the Mac
  • Tried in different folders and outside any project

What works:

  • Running "claude" in Terminal works fine (login successful, Claude Max recognized)
  • Regular chat with Claude in the desktop app works
  • Cowork in the desktop app works

What doesn't work:

  • Only the Code panel inside the desktop app fails, instantly, on every new session

What Should Happen?

The Claude Code session should open normally and respond to messages, like it did until 1-2 days ago.

Error Messages/Logs

Claude Code process exited with code 1

Steps to Reproduce

  1. Open the Claude Desktop app
  2. Click on a project, or open a session outside any project
  3. Click on the "Code" tab to start a Claude Code session
  4. Type any message (e.g. "hello") and press Enter
  5. The red error appears immediately: "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

2.1.104

Claude Code Version

2.1.119

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

<img width="1710" height="1107" alt="Image" src="https://github.com/user-attachments/assets/941afaf1-354a-458f-b4f3-bbbf23ae6248" />

extent analysis

TL;DR

The issue is likely related to the recent update of Claude Code from version 2.1.104 to 2.1.119, and reverting to the previous version may resolve the issue.

Guidance

  • The fact that the issue started after updating Claude Code and the last working version was 2.1.104 suggests a regression in the new version.
  • Try reverting to version 2.1.104 to see if the issue persists.
  • Since running "claude" in Terminal works fine, the issue might be specific to the integration with the desktop app.
  • Check if there are any known issues or updates related to the Claude Code panel in the desktop app.

Example

No code snippet is provided as the issue seems to be related to a version regression rather than a code-specific problem.

Notes

The provided image does not offer any additional technical information that could help in resolving the issue. The problem seems to be isolated to the Claude Code panel within the desktop app, and other functionalities like regular chat and cowork work as expected.

Recommendation

Apply workaround: Revert to version 2.1.104, as it is confirmed to be the last working version, to temporarily resolve the issue until a fix for version 2.1.119 is available.

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

claude-code - 💡(How to fix) Fix [BUG] Claude Code panel in desktop app crashes immediately with "exited with code 1" [2 comments, 3 participants]