claude-code - 💡(How to fix) Fix [BUG] Cowork "Failed to create bridge sockets" — every spawn exits code 1, persists after full VM rebuild (v1.3036.0, macOS) [2 comments, 3 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#49517Fetched 2026-04-17 08:38:52
View on GitHub
Comments
2
Participants
3
Timeline
12
Reactions
1
Timeline (top)
labeled ×5commented ×2cross-referenced ×2closed ×1

Error Message

2026-04-16 13:14:10 [info] [Spawn:create] id=f528c171... name=clever-modest-gates cmd=/usr/local/bin/claude args=... --resume ff1bc88e-ad4c-4beb-ad2f-5a8d3ffd701d ... 2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 OAuth token approved with MITM proxy 2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 Spawn succeeded in 45ms 2026-04-16 13:14:11 [warn] [vm-stderr f528c171] Error: Failed to create bridge sockets after 5 attempts 2026-04-16 13:14:11 [info] [Process:f528c171] Exited, code=1, signal=null, duration=1042ms, oom=false

Code Example

2026-04-16 13:14:10 [info] [Spawn:create] id=f528c171... name=clever-modest-gates cmd=/usr/local/bin/claude args=... --resume ff1bc88e-ad4c-4beb-ad2f-5a8d3ffd701d ...
2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 OAuth token approved with MITM proxy
2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 Spawn succeeded in 45ms
2026-04-16 13:14:11 [warn] [vm-stderr f528c171] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 13:14:11 [info] [Process:f528c171] Exited, code=1, signal=null, duration=1042ms, oom=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?

On Claude Desktop v1.3036.0 (cf521c) on macOS, every Cowork process spawn fails with Error: Failed to create bridge sockets after 5 attempts and exits with code 1 within ~1 second of spawning. This happens on both resumed sessions and brand new sessions. The VM itself boots cleanly — SDK installs successfully (v2.1.111), API is reachable, OAuth approves, and the process spawns. The failure is strictly at the bridge socket setup step inside the VM after spawn. Related to but distinct from #19503 (resume-only) and #23746 (post-update regression) — this reproduces on both new and resumed sessions after a complete VM bundle rebuild.

What Should Happen?

Cowork sessions should spawn and run normally.

Error Messages/Logs

2026-04-16 13:14:10 [info] [Spawn:create] id=f528c171... name=clever-modest-gates cmd=/usr/local/bin/claude args=... --resume ff1bc88e-ad4c-4beb-ad2f-5a8d3ffd701d ...
2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 OAuth token approved with MITM proxy
2026-04-16 13:14:10 [info] [Spawn:vm] id=f528c171 Spawn succeeded in 45ms
2026-04-16 13:14:11 [warn] [vm-stderr f528c171] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 13:14:11 [info] [Process:f528c171] Exited, code=1, signal=null, duration=1042ms, oom=false

Steps to Reproduce

Every spawn follows this exact pattern: spawn succeeds → bridge socket error → exit 1 after ~1 second.

Every session — new or resumed — crashes with "Claude Code process exited with code 1" and is unusable.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

v1.3036.0 (cf521c)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Environment

Claude Desktop: 1.3036.0 (cf521c), built 2026-04-16 macOS: Apple Silicon MacBook Pro socat: installed and verified working TMPDIR: /var/folders/.../T/, exists and writable

Troubleshooting completed (none resolved)

Cleared ~/Library/Application Support/Claude/Cache, Code Cache, HTTPStorages, Caches Deleted /tmp/claude-* socket files Verified TMPDIR exists and is writable Verified socat is installed and functional Tried fresh sessions (not just resume) — same error Fully rebuilt VM bundle (rm -rf ~/Library/Application Support/Claude/vm_bundles/) — same error after re-download Full app quit (Cmd+Q) between each attempt

extent analysis

TL;DR

The issue is likely related to the bridge socket setup step inside the VM after spawn, and a potential workaround could be to investigate and resolve any issues with the socat installation or configuration.

Guidance

  • Verify that the socat installation is correct and functional, as it is required for bridge socket setup.
  • Check the permissions and ownership of the /var/folders/.../T/ directory, which is used as the TMPDIR, to ensure that it is writable by the Claude Desktop application.
  • Investigate any potential conflicts or issues with other applications or system configurations that may be interfering with the bridge socket setup.
  • Consider trying a different version of the Claude Desktop application or the socat installation to see if the issue is specific to the current version.

Example

No code snippet is provided as the issue is related to the application configuration and setup.

Notes

The issue is reported to be a regression, and the last working version is not specified. The troubleshooting steps taken so far have not resolved the issue, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Investigate and resolve any issues with the socat installation or configuration, as it is a critical component of the bridge socket setup. This may involve reinstalling or reconfiguring socat, or troubleshooting any system-level issues that may be interfering with its functionality.

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] Cowork "Failed to create bridge sockets" — every spawn exits code 1, persists after full VM rebuild (v1.3036.0, macOS) [2 comments, 3 participants]