claude-code - 💡(How to fix) Fix [BUG] Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

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…

Error Message

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

Describe the bug The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model. Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

To reproduce

  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

Expected behavior Sessions should initialize and respond normally on Sonnet, as they do on Opus.

Error message Claude Code process exited with code 3221225477 Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

Log excerpt (%APPDATA%\Claude\logs\main.log) [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession [error] Session query error: Claude Code process exited with code 3221225477 [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

Sentry event IDs

  • de220a97a1eb40e3802a4e157a857373
  • db0f3c9fda684cf790c2228d8d2c6f86

Environment

  • OS: Windows 11 Home 10.0.26200
  • Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  • CLI binary version: 2.1.149
  • CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

Additional context

  • The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  • The crash only occurs when the desktop app spawns it as a subprocess for a session
  • Opus works without issue in the same app, same session, same machine
  • AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  • Fresh binary re-download did not resolve the issue

Code Example

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

  Describe the bug
  The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model.
  Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

  To reproduce
  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

  Expected behavior
  Sessions should initialize and respond normally on Sonnet, as they do on Opus.

  Error message
  Claude Code process exited with code 3221225477
  Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

  Log excerpt (%APPDATA%\Claude\logs\main.log)
  [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession
  [error] Session query error: Claude Code process exited with code 3221225477
  [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

  Sentry event IDs
  - de220a97a1eb40e3802a4e157a857373
  - db0f3c9fda684cf790c2228d8d2c6f86

  Environment
  - OS: Windows 11 Home 10.0.26200
  - Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  - CLI binary version: 2.1.149
  - CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

  Additional context
  - The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  - The crash only occurs when the desktop app spawns it as a subprocess for a session
  - Opus works without issue in the same app, same session, same machine
  - AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  - Fresh binary re-download did not resolve the issue
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?

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

Describe the bug The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model. Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

To reproduce

  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

Expected behavior Sessions should initialize and respond normally on Sonnet, as they do on Opus.

Error message Claude Code process exited with code 3221225477 Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

Log excerpt (%APPDATA%\Claude\logs\main.log) [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession [error] Session query error: Claude Code process exited with code 3221225477 [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

Sentry event IDs

  • de220a97a1eb40e3802a4e157a857373
  • db0f3c9fda684cf790c2228d8d2c6f86

Environment

  • OS: Windows 11 Home 10.0.26200
  • Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  • CLI binary version: 2.1.149
  • CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

Additional context

  • The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  • The crash only occurs when the desktop app spawns it as a subprocess for a session
  • Opus works without issue in the same app, same session, same machine
  • AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  • Fresh binary re-download did not resolve the issue

What Should Happen?

it should not crash

Error Messages/Logs

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

  Describe the bug
  The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model.
  Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

  To reproduce
  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

  Expected behavior
  Sessions should initialize and respond normally on Sonnet, as they do on Opus.

  Error message
  Claude Code process exited with code 3221225477
  Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

  Log excerpt (%APPDATA%\Claude\logs\main.log)
  [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession
  [error] Session query error: Claude Code process exited with code 3221225477
  [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

  Sentry event IDs
  - de220a97a1eb40e3802a4e157a857373
  - db0f3c9fda684cf790c2228d8d2c6f86

  Environment
  - OS: Windows 11 Home 10.0.26200
  - Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  - CLI binary version: 2.1.149
  - CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

  Additional context
  - The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  - The crash only occurs when the desktop app spawns it as a subprocess for a session
  - Opus works without issue in the same app, same session, same machine
  - AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  - Fresh binary re-download did not resolve the issue

Steps to Reproduce

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

Describe the bug The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model. Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

To reproduce

  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

Expected behavior Sessions should initialize and respond normally on Sonnet, as they do on Opus.

Error message Claude Code process exited with code 3221225477 Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

Log excerpt (%APPDATA%\Claude\logs\main.log) [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession [error] Session query error: Claude Code process exited with code 3221225477 [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

Sentry event IDs

  • de220a97a1eb40e3802a4e157a857373
  • db0f3c9fda684cf790c2228d8d2c6f86

Environment

  • OS: Windows 11 Home 10.0.26200
  • Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  • CLI binary version: 2.1.149
  • CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

Additional context

  • The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  • The crash only occurs when the desktop app spawns it as a subprocess for a session
  • Opus works without issue in the same app, same session, same machine
  • AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  • Fresh binary re-download did not resolve the issue

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

v2.1.149

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Title: Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11

Describe the bug The Claude Code desktop app crashes every time a session is started or a message is sent when using the Sonnet model. Switching to Opus resolves the crash immediately. The issue is 100% reproducible by toggling between models.

To reproduce

  1. Open Claude Code desktop app on Windows 11
  2. Set model to Sonnet (claude-sonnet-4-6)
  3. Start or resume any session
  4. Observe crash: Claude Code process exited with code 3221225477
  5. Switch model to Opus — session works normally
  6. Switch back to Sonnet — crash returns

Expected behavior Sessions should initialize and respond normally on Sonnet, as they do on Opus.

Error message Claude Code process exited with code 3221225477 Exit code 3221225477 = 0xC0000005 (Windows STATUS_ACCESS_VIOLATION)

Log excerpt (%APPDATA%\Claude\logs\main.log) [warn] [CCD] sendMessage on uninitialized session (CLI died before init); restarting via startSession [error] Session query error: Claude Code process exited with code 3221225477 [info] [CCD CycleHealth] unhealthy cycle (12s, hadFirstResponse=false, reason=no_response)

Sentry event IDs

  • de220a97a1eb40e3802a4e157a857373
  • db0f3c9fda684cf790c2228d8d2c6f86

Environment

  • OS: Windows 11 Home 10.0.26200
  • Desktop app version: 1.8555.2.0 (installed via Microsoft Store / WindowsApps)
  • CLI binary version: 2.1.149
  • CLI path: %APPDATA%\Claude\claude-code\2.1.149\claude.exe

Additional context

  • The CLI binary itself runs fine standalone (claude.exe --version returns correctly)
  • The crash only occurs when the desktop app spawns it as a subprocess for a session
  • Opus works without issue in the same app, same session, same machine
  • AV exclusions have been added for %APPDATA%\Claude — no effect on Sonnet crash
  • Fresh binary re-download did not resolve 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

claude-code - 💡(How to fix) Fix [BUG] Desktop app crashes (exit code 3221225477) with Sonnet but not Opus on Windows 11