claude-code - 💡(How to fix) Fix [BUG] Cowork fails on every new task with "Claude Code process exited with code 1." [5 comments, 6 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#49391Fetched 2026-04-17 08:42:29
View on GitHub
Comments
5
Participants
6
Timeline
12
Reactions
3
Author
Timeline (top)
commented ×5labeled ×4closed ×1cross-referenced ×1

Error Message

Claude should fulfill the task without showing me an error

Error Messages/Logs

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?

Related to #23746 and #19503.

Cowork fails on every new task with "Claude Code process exited with code 1." Log shows: "Failed to create bridge sockets after 5 attempts" in cowork_vm_node.log.

Started: April 16, 2026 (worked previous day) Plan: Claude Max OS: Apple M4 Pro / Version 15.6.1 (24G90) Claude Code CLI: 2.1.97 (stable, rolled back from 2.1.111) Claude Desktop: Download today from web

Tried, none resolved:

  • Reinstalled Claude Code CLI (native installer)
  • Rolled back CLI from 2.1.111 to 2.1.97 stable
  • Cleared ~/Library/Application Support/Claude/claude-code-vm/
  • Cleared /tmp/claude-* entries
  • Installed socat 1.8.1.1 via Homebrew
  • Granted Full Disk Access to Claude app
  • Switched model from Legacy to Opus 4.7
  • Full Mac restart
  • New tasks only (no resumed sessions)

Logs attached:

cowork_vm_node.log

main.log

What Should Happen?

Claude should fulfill the task without showing me an error

Error Messages/Logs

Steps to Reproduce

Cowork fails on every new task with "Claude Code process exited with code 1."

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.97

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by investigating and addressing the "Failed to create bridge sockets after 5 attempts" error in the cowork_vm_node.log file.

Guidance

  • Review the cowork_vm_node.log file to understand the context of the "Failed to create bridge sockets after 5 attempts" error and look for any related warnings or errors.
  • Verify that the socat installation (version 1.8.1.1) is correctly configured and functional, as it might be related to the bridge sockets issue.
  • Consider checking the system's socket limits and configuration to ensure they are not causing the issue.
  • Since this is a regression and the user has already tried rolling back the CLI version, it might be helpful to investigate what changed between the working version and the current version (2.1.97) that could be causing this error.

Notes

The provided information suggests a potential issue with socket creation, but without more details from the logs or system configuration, it's challenging to provide a definitive fix. The user has already taken several troubleshooting steps, including reinstalling the CLI and granting Full Disk Access, which suggests the issue might be more complex.

Recommendation

Apply workaround: Given the regression nature and the specific error message, focusing on the socket creation issue and system configuration might provide a temporary workaround until a more permanent fix can be found.

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