[Bug] VS Code extension connection error on macOS - HTTP client error in bundled Bun runtime

Resolved 💬 5 comments Opened Dec 9, 2025 by carlesribot Closed Feb 12, 2026

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

  1. Install Claude Code CLI (npm install -g @anthropic-ai/claude-code)
  2. Install Claude Code VS Code extension
  3. Open VS Code
  4. Try to use the extension (it shows connection error)
  5. 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/ide folder
  • 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.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗