claude-code - 💡(How to fix) Fix [BUG] Cowork: Claude Code process exits with code 1 on every query — "Failed to create bridge sockets after 5 attempts" on Windows 11 25H2 [2 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#49440Fetched 2026-04-17 08:41:09
View on GitHub
Comments
2
Participants
2
Timeline
10
Reactions
1
Author
Timeline (top)
cross-referenced ×3labeled ×3commented ×2closed ×1

Error Message

%APPDATA%\Claude\logs\cowork_vm_node.log — representative failure (full log available on request):

2026-04-16 20:19:11 [info] [VM:start] Still waiting for guest connection... 10264ms elapsed, 21 polls
2026-04-16 20:19:12 [info] [VM] Network status: CONNECTED
2026-04-16 20:19:12 [info] [VM:steps] sdk_install started
2026-04-16 20:19:12 [info] [postConnect] Installing SDK: version=2.1.111
2026-04-16 20:19:14 [info] [VM] API reachability: REACHABLE
2026-04-16 20:19:15 [info] [VM:steps] sdk_install completed (2983ms)
2026-04-16 20:19:15 [info] [VM:start] Startup complete, total time: 15858ms
2026-04-16 20:19:18 [info] [Spawn:create] id=40bb2790-... cmd=/usr/local/bin/claude args=... --model claude-opus-4-6 ...
2026-04-16 20:19:18 [info] [Spawn:vm] id=40bb2790 OAuth token approved with MITM proxy
2026-04-16 20:19:19 [info] [Spawn:vm] id=40bb2790 Spawn succeeded in 295ms
2026-04-16 20:19:20 [warn] [vm-stderr 40bb2790] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 20:19:20 [info] [Process:40bb2790] Exited, code=1, signal=null, duration=2180ms, oom=false

Three consecutive sessions (IDs 40bb2790, 9131eb14, bf3c843f) all failed with the same Failed to create bridge sockets after 5 attempts error.

Code Example

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

---

2026-04-16 20:19:11 [info] [VM:start] Still waiting for guest connection... 10264ms elapsed, 21 polls
2026-04-16 20:19:12 [info] [VM] Network status: CONNECTED
2026-04-16 20:19:12 [info] [VM:steps] sdk_install started
2026-04-16 20:19:12 [info] [postConnect] Installing SDK: version=2.1.111
2026-04-16 20:19:14 [info] [VM] API reachability: REACHABLE
2026-04-16 20:19:15 [info] [VM:steps] sdk_install completed (2983ms)
2026-04-16 20:19:15 [info] [VM:start] Startup complete, total time: 15858ms
2026-04-16 20:19:18 [info] [Spawn:create] id=40bb2790-... cmd=/usr/local/bin/claude args=... --model claude-opus-4-6 ...
2026-04-16 20:19:18 [info] [Spawn:vm] id=40bb2790 OAuth token approved with MITM proxy
2026-04-16 20:19:19 [info] [Spawn:vm] id=40bb2790 Spawn succeeded in 295ms
2026-04-16 20:19:20 [warn] [vm-stderr 40bb2790] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 20:19:20 [info] [Process:40bb2790] Exited, code=1, signal=null, duration=2180ms, oom=false
RAW_BUFFERClick to expand / collapse

Title

[BUG] Cowork: Claude Code process exits with code 1 on every query — "Failed to create bridge sockets after 5 attempts" on Windows 11 25H2

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report
  • I am using the latest version of Claude Code

What's Wrong?

In Cowork on Windows 11 (25H2), every query fails with Claude Code process exited with code 1. The failure is immediate (~1–2 seconds after send) and 100% reproducible across sessions and across models (seen on both claude-opus-4-6 and claude-opus-4-7).

The VM itself starts up fine — Network status: CONNECTED, API reachability: REACHABLE, SDK installs successfully (v2.1.111), process spawn succeeds. The process then dies on stderr with:

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

This pattern repeats identically on every query. The Claude Code CLI works correctly on the same machine with the same auth, so the issue is isolated to the Cowork host↔guest socket bridge on Windows.

Expected Behaviour

The spawned Claude Code process should establish its bridge sockets with the host and handle queries normally.

Steps to Reproduce

  1. Install Claude Desktop 1.3036.0 (cf521c) on Windows 11 Pro 25H2
  2. Open Cowork and start a new session in any project
  3. Send any query
  4. Observe immediate Claude Code process exited with code 1 error in the UI
  5. %APPDATA%\Claude\logs\cowork_vm_node.log shows Failed to create bridge sockets after 5 attempts for every spawned process

Environment

  • Claude Desktop version: 1.3036.0 (cf521c)
  • Bundled Claude Code SDK: 2.1.111
  • OS: Windows 11 Pro, 25H2
  • Models tried: claude-opus-4-6, claude-opus-4-7 (both fail identically)
  • CLI working: yes, /usr/local/bin/claude works fine outside Cowork with the same OAuth token
  • Started: after recent Cowork auto-update

Log Output

%APPDATA%\Claude\logs\cowork_vm_node.log — representative failure (full log available on request):

2026-04-16 20:19:11 [info] [VM:start] Still waiting for guest connection... 10264ms elapsed, 21 polls
2026-04-16 20:19:12 [info] [VM] Network status: CONNECTED
2026-04-16 20:19:12 [info] [VM:steps] sdk_install started
2026-04-16 20:19:12 [info] [postConnect] Installing SDK: version=2.1.111
2026-04-16 20:19:14 [info] [VM] API reachability: REACHABLE
2026-04-16 20:19:15 [info] [VM:steps] sdk_install completed (2983ms)
2026-04-16 20:19:15 [info] [VM:start] Startup complete, total time: 15858ms
2026-04-16 20:19:18 [info] [Spawn:create] id=40bb2790-... cmd=/usr/local/bin/claude args=... --model claude-opus-4-6 ...
2026-04-16 20:19:18 [info] [Spawn:vm] id=40bb2790 OAuth token approved with MITM proxy
2026-04-16 20:19:19 [info] [Spawn:vm] id=40bb2790 Spawn succeeded in 295ms
2026-04-16 20:19:20 [warn] [vm-stderr 40bb2790] Error: Failed to create bridge sockets after 5 attempts
2026-04-16 20:19:20 [info] [Process:40bb2790] Exited, code=1, signal=null, duration=2180ms, oom=false

Three consecutive sessions (IDs 40bb2790, 9131eb14, bf3c843f) all failed with the same Failed to create bridge sockets after 5 attempts error.

Troubleshooting Already Attempted

  • Restarted Cowork and rebooted the machine — no change
  • Confirmed VM is otherwise healthy (network connected, API reachable, SDK installs)
  • Confirmed CLI (claude) works on the same machine with the same auth — bug is Cowork-specific
  • Tried both claude-opus-4-6 and claude-opus-4-7 — both fail identically

Additional Notes

Given the error is specifically about creating bridge sockets (host↔VM guest loopback), plausible causes on the host side include antivirus/endpoint protection intercepting loopback traffic, a VPN client, or a Windows 11 25H2 networking regression. Happy to test specific hypotheses or provide additional logs.

extent analysis

TL;DR

The issue can likely be resolved by investigating and configuring host-side networking settings, such as disabling antivirus or VPN client interference with loopback traffic.

Guidance

  • Investigate host-side networking settings to identify potential interference with loopback traffic, such as antivirus software or VPN clients.
  • Verify that the issue persists when running Cowork with administrator privileges to rule out permission-related issues.
  • Consider testing the setup on a different Windows version or configuration to isolate the issue to Windows 11 25H2.
  • Check for any Windows 11 25H2 networking regressions or updates that may be related to the issue.

Example

No code snippet is provided as the issue is related to host-side configuration and networking settings.

Notes

The issue may be specific to the Windows 11 25H2 version, and further investigation is needed to determine the root cause. Additional logs or testing may be required to identify the exact cause of the issue.

Recommendation

Apply a workaround by disabling any host-side networking interference, such as antivirus software or VPN clients, to test if the issue is resolved. This is recommended as the issue is likely related to host-side configuration and not a bug in the Claude Code or Cowork software.

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: Claude Code process exits with code 1 on every query — "Failed to create bridge sockets after 5 attempts" on Windows 11 25H2 [2 comments, 2 participants]