claude-code - 💡(How to fix) Fix [BUG] Cowork SDK install loop on every spawn, all projects fail with exit code 1 [1 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#55174Fetched 2026-05-01 05:44:19
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

Error Message

Cowork fails on every project with UI error Claude Code process exited with code 1. Logs show the VM boots cleanly and the network layer is healthy (API reachability: REACHABLE), but [postConnect] Installing SDK ... version=2.1.121 fires repeatedly — multiple times within seconds of each other — and Spawn confirmed never appears for any spawn on the failing day. It looks like the SDK install completion isn't being signaled back, so the next spawn attempt re-triggers install instead of running claude code, and the actual process invocation exits 1.

Error Messages/Logs

Code Example

Logs — repeated install on a freshly-reset Cowork

2026-04-30 20:54:55 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121
2026-04-30 20:55:18 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121
2026-04-30 20:55:18 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121

Earlier same day, same pattern across hours, never followed by a Spawn confirmed:
2026-04-30 20:14:04, 20:14:23, 20:14:27, 20:14:32, 20:14:44, 20:14:55, 20:14:55
2026-04-30 20:27:19, 20:28:27, 20:28:32

For comparison, healthy spawn from April 20 (same machine):
2026-04-20 19:27:44 [info] [Spawn:vm] id=... OAuth token approved with MITM proxy
2026-04-20 19:27:44 [info] [Process:...] Spawn confirmed, flushing 2 buffered stdin chunks
2026-04-20 19:27:44 [info] [Spawn:vm] id=... Spawn succeeded in 74ms
Network/VM layer is fine — [VM] API reachability: REACHABLE, MITM proxy started, IPv4 route up, user recovery complete: recovered=19 skipped=1 failed=0.
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?

Cowork fails on every project with UI error Claude Code process exited with code 1. Logs show the VM boots cleanly and the network layer is healthy (API reachability: REACHABLE), but [postConnect] Installing SDK ... version=2.1.121 fires repeatedly — multiple times within seconds of each other — and Spawn confirmed never appears for any spawn on the failing day. It looks like the SDK install completion isn't being signaled back, so the next spawn attempt re-triggers install instead of running claude code, and the actual process invocation exits 1. Confirmed not project-specific: reproduces across multiple projects. Confirmed not local state: persists after full reset (deleted claude-code-vm/ and vm_bundles/, fresh app rebuild from scratch).

Environment

Claude Desktop: 1.5354.0 Platform: macOS, Apple Silicon SDK version (per logs): 2.1.121 Subscription: [your plan]

What Should Happen?

Claude cohort should work

Error Messages/Logs

Logs — repeated install on a freshly-reset Cowork

2026-04-30 20:54:55 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121
2026-04-30 20:55:18 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121
2026-04-30 20:55:18 [info] [postConnect] Installing SDK: subpath=Users/taka/Library/Application Support/Claude/claude-code-vm, version=2.1.121

Earlier same day, same pattern across hours, never followed by a Spawn confirmed:
2026-04-30 20:14:04, 20:14:23, 20:14:27, 20:14:32, 20:14:44, 20:14:55, 20:14:55
2026-04-30 20:27:19, 20:28:27, 20:28:32

For comparison, healthy spawn from April 20 (same machine):
2026-04-20 19:27:44 [info] [Spawn:vm] id=... OAuth token approved with MITM proxy
2026-04-20 19:27:44 [info] [Process:...] Spawn confirmed, flushing 2 buffered stdin chunks
2026-04-20 19:27:44 [info] [Spawn:vm] id=... Spawn succeeded in 74ms
Network/VM layer is fine — [VM] API reachability: REACHABLE, MITM proxy started, IPv4 route up, user recovery complete: recovered=19 skipped=1 failed=0.

Steps to Reproduce

Update to Claude Desktop 1.5354.0 Open any project in Cowork Send any message UI: Something went wrong — Claude Code process exited with code 1 Logs: SDK install loop, no Spawn confirmed

Already Tried

Restart Claude Desktop ✓ Restart Mac ✓ Different projects (multiple) ✓ Full reset: deleted ~/Library/Application Support/Claude/claude-code-vm/ and vm_bundles/, rebuilt from scratch ✓ All fail identically.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

<img width="812" height="379" alt="Image" src="https://github.com/user-attachments/assets/8d27479d-7c0b-4daf-b8a4-221820706c0f" /> <img width="849" height="405" alt="Image" src="https://github.com/user-attachments/assets/b02dcbc0-3113-421d-af3d-d0f6984765ba" />

extent analysis

TL;DR

The issue is likely caused by a problem with the SDK installation process, which is repeatedly triggered and never completes, preventing the Claude Code process from running.

Guidance

  • The repeated installation of the SDK with version 2.1.121 suggests a potential issue with the installation process or the version itself.
  • The fact that the Spawn confirmed message never appears indicates that the SDK installation is not being signaled as complete, causing the next spawn attempt to re-trigger the installation.
  • Try checking the SDK version and installation process to ensure it is correct and complete.
  • Verify that the claude-code-vm and vm_bundles directories are properly reset and rebuilt after a full reset.

Example

No code snippet is provided as the issue seems to be related to the SDK installation process and not a specific code error.

Notes

The issue is confirmed to be a regression and not project-specific, and it persists after a full reset. The exact cause of the SDK installation loop is unclear, and further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by trying to manually install the SDK or checking the installation process to ensure it is correct and complete, as the issue seems to be related to the SDK installation.

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