[Bug] VS Code extension connection error on macOS - HTTP client error in bundled Bun runtime
Description
The Claude Code VS Code extension fails to connect with an HTTP client error. The CLI works perfectly in the terminal, but the VS Code extension cannot establish a connection.
## Error Message
From VS Code Output panel (Claude):
2025-12-09T14:49:40.576Z [ERROR] "Error: Error\n at (/$bunfs/root/claude:176:14885)\n at (/$bunfs/root/claude:190:10252)\n at emitError
(node:events:43:23)\n at (/$bunfs/root/claude:189:3466)\n at emitError (node:events:43:23)\n at (node:_http_client:248:22)\n at
processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:192:2147)\n at processTicksAndRejections (native:7:39)"
## Environment
- OS: macOS 15.7.2 (Build 24G325)
- Architecture: arm64 (Apple Silicon)
- VS Code: 1.106.3
- Claude Code CLI: 2.0.62
- Claude Code Extension: 2.0.62 (anthropic.claude-code)
- Node.js: v20.13.1
## Steps to Reproduce
- Install Claude Code CLI (
npm install -g @anthropic-ai/claude-code) - Install Claude Code VS Code extension
- Open VS Code
- Try to use the extension (it shows connection error)
- Check Output panel → Claude to see the error
## Expected Behavior
The VS Code extension should connect and work properly.
## Actual Behavior
The extension fails with an HTTP client error in the bundled Bun runtime. The CLI works fine in both external terminal and VS Code integrated terminal.
## Troubleshooting Attempted
- Reinstalled the extension
- Cleared
~/.claude/idefolder - Reloaded VS Code
- Restarted VS Code completely
- No proxy settings configured
- No firewall blocking localhost connections
## Additional Context
The error stack trace references /$bunfs/root/claude which suggests the issue is in the bundled Bun runtime's HTTP client. The CLI running directly in the
terminal works without issues.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗