Skip to content

[BUG] Claude code VS Code extension error in MacOS #34639

Description

@get2rayan

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?

Extension Claude code for VS Code latest version 2.1.76 in MacOs gives error
IDE: ✘ Error installing VS Code extension: 1: Command failed with
ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension
anthropic.claude-code
Premature close
Please restart your IDE and try again.

Image

What Should Happen?

Claude code should run without the aforementioned error message

Error Messages/Logs

IDE: ✘ Error installing VS Code extension: 1: Command failed with
       ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension
       anthropic.claude-code
       Premature close
       Please restart your IDE and try again.

Steps to Reproduce

Install latest claude code extension in VS Code in MacOs (Sequoia 15.7.3) and run claude

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workingplatform:macosIssue specifically occurs on macOSplatform:vscodeIssue specifically occurs in VS CodestaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions