[BUG] VS Code Extension Crash - Bun Runtime Error (Exit Code 3) on Windows
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?
Description
The VS Code extension crashes immediately on launch with exit code 3. The CLI version works correctly in terminal.
## Environment
- OS: Windows 11 with WSL2 (Linux 5.15.167.4-microsoft-standard-WSL2)
- VS Code Extension: anthropic.claude-code-2.1.22-win32-x64
- Bundled Bun Version: 1.3.5
- CLI: Works normally in terminal (both Windows cmd and WSL2)
## Root Cause
The extension's bundled Bun runtime crashes with an integer overflow panic:
```
Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
RSS: 2.85GB | Peak: 2.85GB | Commit: 2.89GB | Faults: 708097 | Machine: 33.76GB
panic(thread 26700): integer does not fit in destination type
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
```
Bun crash report URL:
https://bun.report/1.3.5/e_11e86cebGugogCw+kiM65ioJgqpmMCYKERNEL32.DLLut0LCSntdll.dll4zijBA0eNoFwcENACAMAsBVWM1ENHyosXzc3js53LyYxYYrWApkTHbkEZWRd/gBNAAPKQ
## Additional Errors in Logs
Before the crash:
MCP server "claude-vscode" Failed to fetch tools: MCP error -32601: Method not found- ripgrep abort errors:
rg error (signal=undefined, code=ABORT_ERR, stderr: ), 0 results
## Steps to Reproduce
- Install Claude Code extension v2.1.22 in VS Code on Windows 11
- Open any folder/workspace
- Attempt to launch Claude Code from the extension
- Extension crashes with exit code 3
## Troubleshooting Attempted
- Verified CLI works correctly (
claude --version,claude auth status) - works fine - Created missing skills directories that were causing ENOENT errors:
C:\Users\[username]\.claude\skillsC:\ProgramData\ClaudeCode\.claude\skills
- Fully uninstalled extension, closed VS Code, manually deleted extension folder, reinstalled - same crash
- Restarted VS Code and Windows - same crash
## Expected Behavior
Extension should launch without crashing.
## Logs
See attached claude_extension_crash_trimmed.log for relevant crash details.
What Should Happen?
No error message when the extension opens
claude_extension_crash_trimmed.log
Error Messages/Logs
Steps to Reproduce
Open Claude Code VS Extension window and wait a moment
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
?? I auto-update extension
Claude Code Version
2.1.22
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗