[BUG] Cowork bundled claude-code-vm 2.1.111 crashes on launch with Bun TypeError; 2.1.87 on same machine works
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
What's wrong
Every Cowork task fails immediately with "Something went wrong — Claude Code process exited with code 1."
Direct invocation of the bundled binary at:
/mnt/c/Users/<user>/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/claude-code-vm/2.1.111/claude
...produces the following Bun runtime error before the binary can do anything:
What Should Happen?
Expected behavior
Binary should report its version and exit 0. The 2.1.87 version of the bundled binary, present on the same machine from a previous install, does exactly this:
Error Messages/Logs
TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun
Bun v1.3.13 (Linux x64 baseline)
Steps to Reproduce
Steps to reproduce
- Install Cowork on Windows 11 Pro (Cowork bundles claude-code-vm 2.1.111)
- Open any project, run any task
- Task fails with "Claude Code process exited with code 1"
To reproduce the underlying error directly, in WSL:/mnt/c/Users/<user>/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/claude-code-vm/2.1.111/claude --version
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.87 (bundled claude-code-vm in Cowork)
Claude Code Version
2.1.111 (bundled claude-code-vm in Cowork) — failing 2.1.87 (bundled claude-code-vm in Cowork) — working on same machine
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
This is a Cowork bug, not a standalone Claude Code CLI bug. Cowork bundles its own Claude Code runtime under:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude-code-vm\<version>\claude
The bundled binary is a Bun-compiled Linux ELF executable. The 2.1.111 build crashes inside Bun before it can do anything; the 2.1.87 build on the same machine works correctly. This points to a regression in how 2.1.111 was bundled with Bun, not an environment or user-config issue.
Hardware: Ryzen 5 7600X, RTX 3090, 32GB DDR5
WSL: WSL2, Ubuntu 24
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗