claude-code - 💡(How to fix) Fix [BUG] Claude Code process exited with code 127 [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#56171Fetched 2026-05-05 05:56:20
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×1subscribed ×1unlabeled ×1

Error Message

Creating a new Cowork session will result in an error, while some historical sessions can execute normally.

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?

Cowork Claude Code process exited with code 127

What Should Happen?

Creating a new Cowork session will result in an error, while some historical sessions can execute normally.

Error Messages/Logs

Steps to Reproduce

coworkKappa is unavailable

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.133

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely due to a compatibility problem between the current Claude Code version (2.1.126) and the Sonnet model, and downgrading to version 2.1.81 may resolve the issue.

Guidance

  • The error code 127 typically indicates a command not found, suggesting a potential issue with the Claude Code executable or its dependencies.
  • Since the issue is reported as a regression and the last working version was 2.1.81, comparing the changes between versions 2.1.81 and 2.1.126 may help identify the root cause.
  • Try downgrading to version 2.1.81 to verify if the issue is resolved.
  • If downgrading is not feasible, provide more details about the project and the tasks being performed in Cowork to help narrow down the potential causes.

Example

No code snippet is provided as the issue seems to be related to version compatibility rather than a specific code error.

Notes

The solution is based on the information provided and may not apply if there are other factors at play. The Anthropic API and macOS platform specifics are noted but not directly addressed due to lack of explicit details.

Recommendation

Apply workaround: Downgrade to version 2.1.81, as it is reported to be the last working version, to potentially resolve the compatibility 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] Claude Code process exited with code 127 [1 comments, 2 participants]