claude-code - 💡(How to fix) Fix [Bug] Cowork session spawn fails: Bridge socket creation exhausted after 5 attempts [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#49417Fetched 2026-04-17 08:41:46
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:11.994Z"}]

Code Example

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n    at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n    at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n    at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n    at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:11.994Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Cowork fails consistently on every session spawn. App 1.3036.0, macOS [bitte sw_vers ergänzen]. VM boots cleanly, then claude-code process exits with code 1 after 1s with Error: Failed to create bridge sockets after 5 attempts (see cowork_vm_node.log). Reproducible after full app restart, killing all helper processes, and removing bridge-state.json. Claude Code VM SDK version 2.1.111. Issue started around the 15.04.2026 Cowork GA / Desktop rewrite.

Environment Info

  • Platform: darwin
  • Terminal: kitty
  • Version: 2.1.111
  • Feedback ID: 9903f9f8-4c27-4628-8399-6a39c5332127

Errors

[{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at uAq (/$bunfs/root/src/entrypoints/cli.js:253:283569)\n    at async huq (/$bunfs/root/src/entrypoints/cli.js:406:898)\n    at async BS6 (/$bunfs/root/src/entrypoints/cli.js:406:796)\n    at async m8_ (/$bunfs/root/src/entrypoints/cli.js:2724:2084)\n    at async cjH (/$bunfs/root/src/entrypoints/cli.js:2749:5698)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2773:3363)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:11.994Z"}]

extent analysis

TL;DR

The issue can be potentially resolved by investigating and fixing the keychain entry deletion error that occurs during the claude-code process.

Guidance

  • Investigate the keychain entry deletion error: The error message suggests that the specified item could not be found in the keychain, which might be causing the claude-code process to exit with code 1.
  • Check the cowork_vm_node.log for more detailed error messages: This log file might contain additional information about the error that can help identify the root cause.
  • Verify the keychain configuration: Ensure that the keychain is properly configured and that the necessary entries are present.
  • Consider resetting the keychain or removing any unnecessary entries: If the keychain is corrupted or contains unnecessary entries, resetting it or removing the entries might resolve the issue.

Example

No code snippet is provided as the issue does not contain enough information to create a specific code example.

Notes

The issue seems to be related to the keychain configuration, but more information is needed to provide a definitive solution. The error message suggests that the issue started after the 15.04.2026 Cowork GA / Desktop rewrite, which might indicate a version-specific problem.

Recommendation

Apply workaround: The best course of action is to investigate and fix the keychain entry deletion error, as it seems to be the root cause of the issue. If a fix is not available, applying a workaround such as resetting the keychain or removing unnecessary entries might resolve the issue.

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 session spawn fails: Bridge socket creation exhausted after 5 attempts [1 comments, 2 participants]