[BUG] CC Switch "关于"页面显示 claude.cmd 无法运行 — 路径引号嵌套问题 (Windows) [BUG] CC Switch "About" page shows claude.cmd cannot run — path quoting issue on Windows

Resolved 💬 2 comments Opened May 30, 2026 by TianxiandanGoBIG Closed Jun 2, 2026

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?

环境 / Environment

  • OS: Windows 11 Home China (10.0.26200)
  • VS Code 扩展版本: anthropic.claude-code@2.1.157
  • Claude CLI 版本: 2.1.157
  • Node.js: v24.15.0
  • npm: 11.12.1

## 问题描述 / Description
在扩展的"关于"(About)页面中显示"已安装·无法运行",错误信息为:

'"C:\Users\Gobig\AppData\Roaming\npm\claude.cmd"' 不是内部或外部命令,也不是可运行的程序或批处理文件

What Should Happen?

分析 / Analysis

  1. claude.cmd 文件确实存在于 C:\Users\Gobig\AppData\Roaming\npm\claude.cmd
  2. 在终端中执行 claude --version 能正常返回 2.1.157 (Claude Code)
  3. 问题在于扩展调用路径时多了一层引号嵌套('"..."'),导致 Windows CMD 将整个带引号的字符串当作文件名查找
  4. 错误信息中的中文出现乱码,说明编码处理(UTF-8 vs GBK)也需要修复

Error Messages/Logs

Steps to Reproduce

分析 / Analysis

  1. claude.cmd 文件确实存在于 C:\Users\Gobig\AppData\Roaming\npm\claude.cmd
  2. 在终端中执行 claude --version 能正常返回 2.1.157 (Claude Code)
  3. 问题在于扩展调用路径时多了一层引号嵌套('"..."'),导致 Windows CMD 将整个带引号的字符串当作文件名查找
  4. 错误信息中的中文出现乱码,说明编码处理(UTF-8 vs GBK)也需要修复

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.157

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

[

<img width="636" height="280" alt="Image" src="https://github.com/user-attachments/assets/cd51d8c7-2fda-4000-9126-f0f2d4692a66" />

](url)

View original on GitHub ↗

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