claude-code - 💡(How to fix) Fix [BUG] Cowork: "Claude Code process exited with code 1" on every session — macOS Apple Silicon, clean reinstall, no fix [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#49426Fetched 2026-04-17 08:41:32
View on GitHub
Comments
4
Participants
5
Timeline
12
Reactions
4
Timeline (top)
commented ×4labeled ×4subscribed ×2closed ×1

Error Message

UI error: "Claude Code process exited with code 1"

cowork_vm_swift.log: no entries after initial session load main.log: Session query error — Claude Code process exited with code 1 (0s, hadFirstResponse=false)

Fix Action

Fix / Workaround

  • ANTHROPIC_API_KEY is unset in the environment
  • CLAUDE_CODE_OAUTH_TOKEN is present and valid (login succeeds)
  • Chat mode in Claude Desktop works normally
  • Crash is deterministic — 0 seconds, no first response, every attempt
  • macOS code signing prevented binary wrapper workaround (sudo was insufficient)
  • Issue persists across multiple fresh installs on the same machine

Code Example

UI error: "Claude Code process exited with code 1"

cowork_vm_swift.log: no entries after initial session load
main.log: Session query error — Claude Code process exited with code 1 (0s, hadFirstResponse=false)
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?

Every Cowork session crashes immediately with "Claude Code process exited with code 1." The crash is instant — no VM boot, no response. Chat mode works fine. The issue began around April 16, 2026. After the April 15th Anthropic outage and persists after services recovered.

Troubleshooting already attempted (none resolved it):

  • Unset ANTHROPIC_API_KEY — no change
  • Deleted ~/.claude/ and ~/.claude.json — no change
  • Attempted shell wrapper on the Claude binary — blocked by macOS code signing even with sudo
  • Deleted Cowork-specific cache (com.anthropic.claude/cowork, ~/.cowork) — no change
  • Full uninstall (app + all Library support/cache/log directories) — no change
  • Clean reinstall from claude.ai/download — same error

The binary loads but the VM never boots. cowork_vm_swift.log shows no entries after initial load. Likely related to #36419, #39270, #46029, #46161.

What Should Happen?

Cowork session starts, the VM boots, and the Claude Code process responds to messages normally.

Error Messages/Logs

UI error: "Claude Code process exited with code 1"

cowork_vm_swift.log: no entries after initial session load
main.log: Session query error — Claude Code process exited with code 1 (0s, hadFirstResponse=false)

Steps to Reproduce

  1. Install Claude Desktop (latest, clean install from claude.ai/download)
  2. Log in via claude.ai OAuth
  3. Open the Cowork tab
  4. Start any new session
  5. Observe: "Claude Code process exited with code 1" appears instantly

No specific project or prompt needed — crash is immediate and 100% reproducible.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Binary version: 2.1.111 (confirmed via ~/Library/Application Support/Claude/claude-code/ directory) Run claude --version to confirm CLI version if installed.

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • ANTHROPIC_API_KEY is unset in the environment
  • CLAUDE_CODE_OAUTH_TOKEN is present and valid (login succeeds)
  • Chat mode in Claude Desktop works normally
  • Crash is deterministic — 0 seconds, no first response, every attempt
  • macOS code signing prevented binary wrapper workaround (sudo was insufficient)
  • Issue persists across multiple fresh installs on the same machine

extent analysis

TL;DR

The issue is likely related to a regression in the Claude Code binary version 2.1.111, causing the Cowork session to crash immediately with a "Claude Code process exited with code 1" error.

Guidance

  • Verify that the issue is indeed related to the binary version by checking the cowork_vm_swift.log file for any error messages or clues.
  • Since the issue persists across multiple fresh installs, try to isolate the problem by testing the Cowork session on a different machine or environment to see if the issue is machine-specific.
  • Review the related issues (#36419, #39270, #46029, #46161) to see if there are any common patterns or potential fixes that can be applied.
  • Consider reaching out to the Anthropic support team for further assistance, as the issue may be related to the Anthropic API or the Claude Code binary.

Example

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

Notes

The issue is likely related to a regression in the Claude Code binary version, and the fact that it persists across multiple fresh installs suggests that it may be a more complex issue. The related issues listed may provide some clues, but further investigation and support from the Anthropic team may be necessary to resolve the issue.

Recommendation

Apply workaround: Since the issue is likely related to a regression in the binary version, it may be necessary to wait for an updated version of the Claude Code binary that fixes the issue. In the meantime, users may need to use alternative methods or workarounds to access the Cowork session.

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