claude-code - 💡(How to fix) Fix [BUG] 1.3036.0: CoWork sessions crash with "Claude Code process exited with code 1" on first message — terminal CLI works fine [4 comments, 5 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#49473Fetched 2026-04-17 08:40:11
View on GitHub
Comments
4
Participants
5
Timeline
12
Reactions
2
Author
Timeline (top)
labeled ×5commented ×4cross-referenced ×2closed ×1

Error Message

Source: ~/Library/Logs/Claude/main.log

2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] Using system prompt (122259 chars, 1 segments) 2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] SDK version 2.1.111 will be used 2026-04-16 13:23:29 [info] Using Claude VM spawn function for session 2026-04-16 13:23:29 [info] [Lifecycle] Session local_XXXX: initializing → running 2026-04-16 13:23:30 [error] Session local_XXXX query error: Claude Code process exited with code 1 2026-04-16 13:23:30 [info] [Lifecycle] Session local_XXXX: running → idle 2026-04-16 13:23:30 [info] [CycleHealth] Unhealthy cycle: { session_id: 'local_XXXX', vm_instance_id: 'XXXX', model: 'claude-opus-4-6', cycle_health: 'unhealthy', had_first_response: false, seconds_to_outcome: 1, is_resume: true, unhealthy_reason: 'system_error', error_category: 'process_crashed', error_message: 'Claude Code process exited with code 1', transcript_size_bytes: 336477 }

Code Example

Source: ~/Library/Logs/Claude/main.log

2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] Using system prompt (122259 chars, 1 segments)
2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] SDK version 2.1.111 will be used
2026-04-16 13:23:29 [info] Using Claude VM spawn function for session
2026-04-16 13:23:29 [info] [Lifecycle] Session local_XXXX: initializing → running
2026-04-16 13:23:30 [error] Session local_XXXX query error: Claude Code process exited with code 1
2026-04-16 13:23:30 [info] [Lifecycle] Session local_XXXX: running → idle
2026-04-16 13:23:30 [info] [CycleHealth] Unhealthy cycle: {
  session_id: 'local_XXXX',
  vm_instance_id: 'XXXX',
  model: 'claude-opus-4-6',
  cycle_health: 'unhealthy',
  had_first_response: false,
  seconds_to_outcome: 1,
  is_resume: true,
  unhealthy_reason: 'system_error',
  error_category: 'process_crashed',
  error_message: 'Claude Code process exited with code 1',
  transcript_size_bytes: 336477
}
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?

After updating to Claude Desktop 1.3036.0 (cf521c) on 2026-04-16, every CoWork session crashes within ~1 second of the first message with "Claude Code process exited with code 1."

Reproduces 100% of the time on:

  • New sessions outside any project
  • New sessions inside projects
  • Resumed sessions

The bundled Claude Code binary (SDK 2.1.111) works correctly when invoked directly from terminal via claude --resume <session-id>. The same session that crashes in Desktop resumes successfully in the CLI. The bug is isolated to the Desktop app's process-spawn path, not the binary, authentication, or API reachability.

Full quit + relaunch does not help. Check for Updates confirms 1.3036.0 is current.

Environment: macOS (Apple Silicon), Claude Desktop 1.3036.0 (cf521c), Claude Code SDK 2.1.111.

Pattern matches prior Desktop-launcher regressions (issues #46029, #37822, #39270). Worked on the build immediately before 1.3036.0.

What Should Happen?

CoWork sessions should successfully accept and respond to the first user message. The Claude Code process should spawn and remain running, stream a response back, and the session should transition to a healthy cycle with had_first_response: true.

This worked correctly on the build immediately prior to 1.3036.0.

Error Messages/Logs

Source: ~/Library/Logs/Claude/main.log

2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] Using system prompt (122259 chars, 1 segments)
2026-04-16 13:23:29 [info] [LocalAgentModeSessionManager] SDK version 2.1.111 will be used
2026-04-16 13:23:29 [info] Using Claude VM spawn function for session
2026-04-16 13:23:29 [info] [Lifecycle] Session local_XXXX: initializing → running
2026-04-16 13:23:30 [error] Session local_XXXX query error: Claude Code process exited with code 1
2026-04-16 13:23:30 [info] [Lifecycle] Session local_XXXX: running → idle
2026-04-16 13:23:30 [info] [CycleHealth] Unhealthy cycle: {
  session_id: 'local_XXXX',
  vm_instance_id: 'XXXX',
  model: 'claude-opus-4-6',
  cycle_health: 'unhealthy',
  had_first_response: false,
  seconds_to_outcome: 1,
  is_resume: true,
  unhealthy_reason: 'system_error',
  error_category: 'process_crashed',
  error_message: 'Claude Code process exited with code 1',
  transcript_size_bytes: 336477
}

Steps to Reproduce

  1. Update Claude Desktop to 1.3036.0 (cf521c) on macOS Apple Silicon
  2. Launch the app and open the CoWork tab
  3. Click "+ New task" (no project selected)
  4. Type any first message (e.g., "Is this session working?")
  5. Observe: "Something went wrong — Claude Code process exited with code 1" appears within ~1 second

Reproduces identically when starting a task inside a project, and when resuming an existing session.

For comparison: running claude --resume <session-id> from terminal with the same SDK version (2.1.111) successfully resumes the same session that crashes in Desktop.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Version was up to date before Claude 1.3036.0 (cf521c) 2026-04-16T16:17:33.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely due to a regression in the Desktop app's process-spawn path introduced in version 1.3036.0, causing the Claude Code process to exit with code 1, and a potential workaround could be to revert to a previous version of the Desktop app.

Guidance

  • The error message "Claude Code process exited with code 1" suggests that the issue is related to the spawning of the Claude Code process, which works correctly when invoked directly from the terminal.
  • The fact that the issue reproduces 100% of the time on new and resumed sessions, both inside and outside projects, indicates a systematic problem with the Desktop app's process-spawn path.
  • Comparing the behavior with the terminal invocation of the Claude Code binary may help identify the root cause of the issue.
  • Checking the main.log file for any additional error messages or clues may provide more insight into the problem.

Example

No code snippet is provided as the issue seems to be related to the Desktop app's configuration or binary rather than a specific code snippet.

Notes

The issue seems to be specific to the macOS (Apple Silicon) platform and the Claude Desktop 1.3036.0 (cf521c) version. The fact that it worked correctly in a previous version suggests a regression.

Recommendation

Apply workaround: Revert to a previous version of the Desktop app, if possible, until the issue is fixed in a future update, as the current version (1.3036.0) seems to have introduced a regression in the process-spawn path.

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] 1.3036.0: CoWork sessions crash with "Claude Code process exited with code 1" on first message — terminal CLI works fine [4 comments, 5 participants]