claude-code - 💡(How to fix) Fix Cowork: Failed to create bridge sockets after 5 attempts (v1.3036.0) [5 comments, 4 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#49492Fetched 2026-04-17 08:39:37
View on GitHub
Comments
5
Participants
4
Timeline
14
Reactions
0
Timeline (top)
commented ×5labeled ×4closed ×2cross-referenced ×1

Error Message

  • CLI exits within ~900ms with stderr: "Error: Failed to create bridge sockets after 5 attempts"

Error Messages/Logs

  • CLI exits within ~900ms with stderr: "Error: Failed to create bridge sockets after 5 attempts"
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?

=== SUMMARY === Cowork "Failed to create bridge sockets after 5 attempts" crash Related: https://github.com/anthropics/claude-code/issues/23746

Environment:

  • macOS (Darwin)
  • Claude Desktop 1.3036.0
  • Claude Code SDK 2.1.111
  • VM bundle: 5680b11bcdab215cccf07e0c0bd1bd9213b0c25d
  • Reproduces: every Cowork session, 100% failure, ~900ms after spawn

Symptoms:

  • VM boots successfully ("Startup complete, total time: 6009ms")
  • Network reachable ("API reachability: REACHABLE")
  • CLI spawns into VM successfully ("Spawn succeeded in 53ms")
  • CLI exits within ~900ms with stderr: "Error: Failed to create bridge sockets after 5 attempts"
  • Exit code 1, signal null, oom false
  • Fresh sessions (isResume=false), allowedDomains=23
  • Happens both before and after quarantine removal from /Applications/Claude.app
  • Happens on freshly-launched Claude Desktop process

Attempted fixes (none resolved):

  • Removed com.apple.quarantine from /Applications/Claude.app
  • Full app quit and relaunch
  • Cleared stuck VM sandbox-user state via restart [

cowork-vm-node-excerpts.txt main-log-excerpts.txt summary.txt

](url)

What Should Happen?

Claude cowork should have worked

Error Messages/Logs

Steps to Reproduce

=== SUMMARY === Cowork "Failed to create bridge sockets after 5 attempts" crash Related: https://github.com/anthropics/claude-code/issues/23746

Environment:

  • macOS (Darwin)
  • Claude Desktop 1.3036.0
  • Claude Code SDK 2.1.111
  • VM bundle: 5680b11bcdab215cccf07e0c0bd1bd9213b0c25d
  • Reproduces: every Cowork session, 100% failure, ~900ms after spawn

Symptoms:

  • VM boots successfully ("Startup complete, total time: 6009ms")
  • Network reachable ("API reachability: REACHABLE")
  • CLI spawns into VM successfully ("Spawn succeeded in 53ms")
  • CLI exits within ~900ms with stderr: "Error: Failed to create bridge sockets after 5 attempts"
  • Exit code 1, signal null, oom false
  • Fresh sessions (isResume=false), allowedDomains=23
  • Happens both before and after quarantine removal from /Applications/Claude.app
  • Happens on freshly-launched Claude Desktop process

Attempted fixes (none resolved):

  • Removed com.apple.quarantine from /Applications/Claude.app
  • Full app quit and relaunch
  • Cleared stuck VM sandbox-user state via restart

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.3036.0.

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be potentially resolved by investigating and addressing the "Failed to create bridge sockets after 5 attempts" error, which may be related to network or socket configuration.

Guidance

  • Review the provided log excerpts (cowork-vm-node-excerpts.txt, main-log-excerpts.txt, summary.txt) to identify any patterns or clues that could lead to the root cause of the "Failed to create bridge sockets after 5 attempts" error.
  • Investigate the network configuration and socket settings in the Claude Code SDK and VM bundle to ensure they are correctly set up and compatible with the macOS environment.
  • Consider comparing the current configuration with the last working version (if known) to identify any changes that might have introduced the issue.
  • Since the issue is reported as a regression, checking the release notes or changelogs of the Claude Code SDK and Claude Desktop for any changes related to networking or socket handling might provide insights.

Example

No specific code snippet can be provided without more context, but reviewing the logs and configuration files for any socket or network-related settings is a good starting point.

Notes

The exact cause of the issue is not clear from the provided information, and without access to the specific logs or configuration files, it's challenging to provide a precise solution. The steps suggested are aimed at guiding the investigation towards potential areas that could be causing the problem.

Recommendation

Apply workaround: Given the issue is a regression and the provided attempts to fix it were unsuccessful, the best course of action might be to try and isolate the change that introduced the bug and revert or adjust it accordingly. If a previous version worked, comparing configurations or downgrading to a known working version might be a temporary workaround until the issue is fully resolved.

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 Cowork: Failed to create bridge sockets after 5 attempts (v1.3036.0) [5 comments, 4 participants]