claude-code - 💡(How to fix) Fix [BUG] Code Tab Crashing (~ 1 Month) [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#50715Fetched 2026-04-20 12:15:04
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1subscribed ×1

Error Message

The Code tab in the Claude Desktop app crashes immediately on every attempt to start a session. The error displayed in the UI is:

  • Exception type: EXC_BREAKPOINT (SIGTRAP)
  • Termination: The app's own exception handler killed the process
  1. Error appears: "Claude Code process exited with code 1"

Error Messages/Logs

  1. Error appears: "Claude Code process exited with code 1"

Root Cause

Note: The crash occurs inside the Claude Desktop app's Code tab, not in a terminal environment. The Terminal.app selection above is only because the form requires a choice — this bug is not terminal-specific.

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?

Environment Details:

  • Claude Desktop version: 1.2773.0 (884b37)
  • macOS: 26.3.1 (25D2128)
  • Hardware: Apple Silicon (ARM-64)
  • Plan: Max
  • Bundled Claude Code version: 2.1.92

The Code tab in the Claude Desktop app crashes immediately on every attempt to start a session. The error displayed in the UI is:

"Claude Code process exited with code 1"

This happens on every attempt: new sessions, different project folders, fresh installs. The regular chat tab works fine; only the Code tab is affected.

What was tried:

  • Full uninstall and reinstall of Claude Desktop
  • Node.js reinstalled
  • Claude Code CLI reinstalled
  • Bundled Claude Code tested directly (runs fine standalone from terminal)
  • Multiple sessions tested over 1 month

Crash Analysis:

Crash report (~/Library/Logs/DiagnosticReports/Claude-*.ips) shows:

  • Exception type: EXC_BREAKPOINT (SIGTRAP)
  • Faulting thread: 0 (CrBrowserMain — the main Electron thread)
  • Crash location: Deep inside the Electron/V8 runtime layer, not in Claude Code itself
  • Signal: SIGTRAP — Trace/BPT trap: 5
  • Termination: The app's own exception handler killed the process

The crash occurs in the Electron rendering engine before the Claude Code process gets a chance to fully initialise. The stack trace shows V8 internal compiler functions and Electron's main event loop, indicating this is an app-level bug, not a user configuration issue.

Full .ips crash report available on request.

Steps to Reproduce:

  1. Open Claude Desktop app
  2. Click the Code tab
  3. Click "+ New session"
  4. Select any project folder (or create a new empty one)
  5. Type any message and send
  6. Error appears: "Claude Code process exited with code 1"

What Should Happen?

Clicking "+ New session" in the Code tab should successfully launch a Claude Code session in the selected project folder, allowing the user to send messages and receive responses as documented. The Code tab should function identically to running claude in the terminal, just with the visual pane interface (chat, diff, preview, file editor) layered on top.

Error Messages/Logs

"Claude Code process exited with code 1"

Steps to Reproduce

  1. Open Claude Desktop app
  2. Click the Code tab
  3. Click "+ New session"
  4. Select any project folder (or create a new empty one)
  5. Type any message and send
  6. Error appears: "Claude Code process exited with code 1"

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.2773.0 (884b37)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Note: The crash occurs inside the Claude Desktop app's Code tab, not in a terminal environment. The Terminal.app selection above is only because the form requires a choice — this bug is not terminal-specific.

extent analysis

TL;DR

The issue is likely related to a compatibility problem between the Claude Desktop app and the Electron rendering engine, causing the Code tab to crash immediately on start.

Guidance

  • The crash report indicates an EXC_BREAKPOINT (SIGTRAP) exception in the Electron/V8 runtime layer, suggesting an app-level bug rather than a user configuration issue.
  • Given that the bundled Claude Code works fine when run standalone from the terminal, the issue might be specific to the integration with the Claude Desktop app.
  • To mitigate the issue, try checking for any updates to the Claude Desktop app or Electron, as this might resolve the compatibility problem.
  • If possible, test the Code tab with a different version of the Claude Code or Electron to isolate the issue.

Example

No specific code snippet is applicable in this case, as the issue seems to be related to the app's integration and Electron's rendering engine.

Notes

The fact that this worked in a previous version suggests a regression, and the lack of a specified "Last Working Version" makes it difficult to pinpoint the exact cause. The issue might be specific to the Apple Silicon (ARM-64) hardware or the macOS version being used.

Recommendation

Apply workaround: Given the information provided, it's challenging to offer a definitive fix. However, checking for updates to the Claude Desktop app or Electron and testing different versions might provide a temporary workaround until the issue is fully resolved.

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