claude-code - 💡(How to fix) Fix SDK 2.1.111 regression: "Failed to create bridge sockets" — Claude Code process exits code 1 on every Cowork VM spawn (Windows 11, MSIX) [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#49493Fetched 2026-04-17 08:39:35
View on GitHub
Comments
1
Participants
2
Timeline
14
Reactions
0
Timeline (top)
labeled ×5cross-referenced ×4closed ×1commented ×1

Claude Cowork (Windows desktop app, MSIX Store install) fails on every session spawn with "Claude Code process exited with code 1" after the SDK auto-upgraded to 2.1.111 on April 16, 2026 at 19:58 local time. Previous versions 2.1.92 and 2.1.101 worked normally.

Error Message

From C:\Users\mfranjo2003\AppData\Roaming\Claude\logs\cowork_vm_node.log (inside the Linux VM stderr):

[vm-stderr <id>] Error: Failed to create bridge sockets after 5 attempts
[Process:<id>] Exited, code=1, signal=null, duration=~1500ms, oom=false

Every session spawn since the 2.1.111 upgrade fails this way, ~1.5-2.5 seconds after spawn confirmation. The process exits before the first response.

Root Cause

This reproduces in the Claude Cowork desktop app, not the terminal CLI. The CLI outside Cowork (claude command in PowerShell) works fine because it doesn't use the VM.

Fix Action

Fix / Workaround

  1. Roll back the SDK push to 2.1.101 (last known good).
  2. Confirm this is being tracked and give an ETA for a fixed SDK.
  3. Add a mechanism to let users pin an older SDK version as a workaround while fixes propagate.

Claude Code should spawn successfully inside the Cowork VM and respond to my prompt, as it did before the SDK auto-upgrade to 2.1.111.

Package ID: Claude_pzs8sxrjxfjjc (Microsoft Store MSIX install) App version: 1.3036.0.0 SDK binary path: C:\Users<user>\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude-code-vm\2.1.111\claude (235 MB ELF x86-64) Full diagnostic trail: logs show SDK version transitions 2.1.92 → 2.1.101 → 2.1.92 (rollback) → 2.1.111. Crashes begin at the exact timestamp 2.1.111 is installed. Workaround: using Claude CLI outside Cowork works. Rolling back or pinning SDK would unblock.

Code Example

[vm-stderr <id>] Error: Failed to create bridge sockets after 5 attempts
[Process:<id>] Exited, code=1, signal=null, duration=~1500ms, oom=false

---

Failed to create bridge sockets after ${O} attempts
...
socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:${httpSocketPath}
socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:${socksSocketPath}

---

2026-04-16 19:58:29 [info] [LocalAgentModeSessionManager] SDK version 2.1.111 will be used
2026-04-16 19:58:29 [info] [Spawn:vm] Spawn succeeded in <ms>
2026-04-16 19:58:31 [warn] [vm-stderr] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 19:58:31 [info] [Process] Exited, code=1, signal=null, duration=~1500ms, oom=false

---

UI shown to user:
  "Something went wrong"
  "Claude Code process exited with code 1"
  "You can restart the conversation from an earlier message."

Inside cowork_vm_node.log (Linux VM stderr):
  [vm-stderr <id>] Error: Failed to create bridge sockets after 5 attempts
  [Process:<id>] Exited, code=1, signal=null, duration=~1500ms, oom=false

This fires on every single session spawn since SDK 2.1.111 was pushed.
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?

Claude Cowork (Windows desktop app, MSIX Store install) fails on every session spawn with "Claude Code process exited with code 1" after the SDK auto-upgraded to 2.1.111 on April 16, 2026 at 19:58 local time. Previous versions 2.1.92 and 2.1.101 worked normally.

The claude binary running inside the Cowork Linux VM fails to create its HTTP + SOCKS proxy bridge Unix sockets (part of the bwrap subprocess sandbox setup). It retries 5 times, then exits code 1 within ~1.5 seconds — before the first response.

Crashes started in the exact same minute SDK 2.1.111 was installed. Zero "bridge sockets" errors in the logs before that moment. This is a regression introduced in 2.1.111.

Happens in 100% of spawns, across every project, with no config changes on my side.

Summary

Claude Cowork (Windows desktop app, MSIX Store install) fails on every session spawn with "Claude Code process exited with code 1" after the SDK auto-upgraded to 2.1.111 on April 16, 2026 at 19:58 local time. Previous versions 2.1.92 and 2.1.101 worked normally.

Error

From C:\Users\mfranjo2003\AppData\Roaming\Claude\logs\cowork_vm_node.log (inside the Linux VM stderr):

[vm-stderr <id>] Error: Failed to create bridge sockets after 5 attempts
[Process:<id>] Exited, code=1, signal=null, duration=~1500ms, oom=false

Every session spawn since the 2.1.111 upgrade fails this way, ~1.5-2.5 seconds after spawn confirmation. The process exits before the first response.

SDK version timeline (from main.log)

Time (local)SDK versionStatus
Apr 112.1.92Working
Apr 14 09:452.1.101Working
Apr 16 06:552.1.92 (rollback)Working
Apr 16 19:58:292.1.111Broken — first "bridge sockets" error at 19:58:31
Apr 16 21:542.1.111Still broken

Crashes began in the same minute the SDK was swapped to 2.1.111. Zero occurrences of "bridge sockets" error before that moment.

Environment

  • OS: Windows 11 x64
  • Claude desktop app: v1.3036.0.0 (Microsoft Store / MSIX — package Claude_pzs8sxrjxfjjc)
  • Claude Code VM SDK: 2.1.111 (235 MB ELF at claude-code-vm\2.1.111\claude)
  • Entrypoints affected: claude-desktop, claude-vscode
  • Hyper-V services HvHost, vmcompute: Running
  • VM bundle freshly rebuilt after Windows restart — same error

What fails inside the binary

The binary (claude-code-vm/2.1.111/claude) contains this logic:

Failed to create bridge sockets after ${O} attempts
...
socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:${httpSocketPath}
socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:${socksSocketPath}

Bridge socket creation retries 5 times (setTimeout backoff of w*100 ms), then throws. This is the HTTP + SOCKS proxy bridge for bwrap-based subprocess sandboxing. The failure occurs when allowedDomains is set (Cowork passes allowedDomains=25), which triggers needsNetworkRestriction=true and activates the proxy bridges.

What I ruled out

  • MCP auth cache (cleared, no effect)
  • Malformed permissions in settings.json (fixed, no effect)
  • Hooks (none configured)
  • wsl --shutdown + Windows restart (no effect — VM rebuilt cleanly, still broken)
  • VM bundle corruption (freshly extracted after restart, same error)
  • env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=0 in ~/.claude/settings.json (no effect — env block is for Bash subprocesses, not the claude process)
  • Kozminski University SSL-inspection proxy (today's TLS handshakes show legit Google Trust Services cert for bridge.claudeusercontent.com; the cert-mismatch errors in logs are 3 days old and only affected the separate Claude-in-Chrome MCP)

Cowork load config (may or may not matter)

Every session loads:

  • 20 remote MCP servers (Canva, Gamma, Gmail, Calendar, HF, gdrive, Claude in Chrome, mcp-registry, Claude Preview, ccd_session, ccd_directory, pdf-viewer, scheduled-tasks + 7 finance plugin MCPs)
  • 5 local CLI plugins (brand-voice, legal, data, productivity, cowork-plugin-management)
  • 14 enabled skills
  • System prompt 83,178 chars
  • Stdin 82 KB at spawn (up to 1.6 MB on resume)

The failure is immediate and consistent regardless of the specific project/session, suggesting it's independent of workload size.

Attached log (first failure after SDK upgrade)

2026-04-16 19:58:29 [info] [LocalAgentModeSessionManager] SDK version 2.1.111 will be used
2026-04-16 19:58:29 [info] [Spawn:vm] Spawn succeeded in <ms>
2026-04-16 19:58:31 [warn] [vm-stderr] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 19:58:31 [info] [Process] Exited, code=1, signal=null, duration=~1500ms, oom=false

Asks

  1. Roll back the SDK push to 2.1.101 (last known good).
  2. Confirm this is being tracked and give an ETA for a fixed SDK.
  3. Add a mechanism to let users pin an older SDK version as a workaround while fixes propagate.

Happy to provide more logs if needed.

What Should Happen?

Claude Code should spawn successfully inside the Cowork VM and respond to my prompt, as it did before the SDK auto-upgrade to 2.1.111.

Error Messages/Logs

UI shown to user:
  "Something went wrong"
  "Claude Code process exited with code 1"
  "You can restart the conversation from an earlier message."

Inside cowork_vm_node.log (Linux VM stderr):
  [vm-stderr <id>] Error: Failed to create bridge sockets after 5 attempts
  [Process:<id>] Exited, code=1, signal=null, duration=~1500ms, oom=false

This fires on every single session spawn since SDK 2.1.111 was pushed.

Steps to Reproduce

  1. Launch Claude Cowork desktop app on Windows 11 (MSIX Store install v1.3036.0.0).
  2. Open any project (new or existing).
  3. Type any prompt, e.g. "hi".
  4. Send.
  5. Observe: within ~2 seconds the UI shows "Something went wrong / Claude Code process exited with code 1".
  6. Check C:\Users<user>\AppData\Roaming\Claude\logs\cowork_vm_node.log — every spawn contains "Failed to create bridge sockets after 5 attempts" followed by exit code=1.

Happens in 100% of spawns, across all projects, with no prior config changes on my side. Started the exact minute the SDK auto-upgraded to 2.1.111 (April 16 19:58 local).

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.101

Claude Code Version

2.1.111 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

This reproduces in the Claude Cowork desktop app, not the terminal CLI. The CLI outside Cowork (claude command in PowerShell) works fine because it doesn't use the VM.

Package ID: Claude_pzs8sxrjxfjjc (Microsoft Store MSIX install) App version: 1.3036.0.0 SDK binary path: C:\Users<user>\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude-code-vm\2.1.111\claude (235 MB ELF x86-64) Full diagnostic trail: logs show SDK version transitions 2.1.92 → 2.1.101 → 2.1.92 (rollback) → 2.1.111. Crashes begin at the exact timestamp 2.1.111 is installed. Workaround: using Claude CLI outside Cowork works. Rolling back or pinning SDK would unblock.

extent analysis

TL;DR

The most likely fix is to roll back the SDK to version 2.1.101, as it was the last known good version before the auto-upgrade to 2.1.111 caused the issue.

Guidance

  • The issue is likely caused by a regression introduced in SDK version 2.1.111, which prevents the creation of bridge sockets for the HTTP + SOCKS proxy.
  • To verify this, check the cowork_vm_node.log file for the error message "Failed to create bridge sockets after 5 attempts" followed by exit code=1.
  • As a temporary workaround, using the Claude CLI outside of Cowork may work, as it does not use the VM.
  • Rolling back the SDK to version 2.1.101 or pinning an older SDK version may resolve the issue until a fixed SDK is released.

Example

No code snippet is provided as the issue is related to a specific SDK version and its interaction with the Claude Cowork desktop app.

Notes

The issue is specific to the Claude Cowork desktop app on Windows 11 with the MSIX Store install, and does not affect the CLI outside of Cowork. The problem began immediately after the SDK auto-upgrade to 2.1.111, suggesting a regression in this version.

Recommendation

Apply the workaround of rolling back the SDK to version 2.1.101, as it is the last known good version and may resolve the issue until a fixed SDK is released.

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 SDK 2.1.111 regression: "Failed to create bridge sockets" — Claude Code process exits code 1 on every Cowork VM spawn (Windows 11, MSIX) [1 comments, 2 participants]