claude-code - 💡(How to fix) Fix VSCode plugin + CLI sharing ~/.claude/settings.json causes failures on Windows [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60729Fetched 2026-05-20 03:51:01
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants
RAW_BUFFERClick to expand / collapse

Describe the bug

When both Claude Code CLI and the VS Code Claude Code extension are installed on the same Windows 11 machine, they share ~/.claude/settings.json. This appears to cause state/permission conflicts that break core functionality in the VS Code extension environment.

Environment

  • Platform: Windows 11 Home (10.0.26100)
  • Claude Code Version: 2.1.143 (CLI), VS Code extension (same channel, latest)
  • VS Code Version: latest stable
  • Git: 2.54.0.windows.1
  • Shell: bash (via VS Code integrated terminal)

Symptoms

  1. Cannot launch processes from extension: npm run dev fails inside VS Code extension but works perfectly in PowerShell. Electron crashes with TypeError: Cannot read properties of undefined.
  2. Cannot open browser: gh auth login --web quietly fails, no browser window opens.
  3. Cannot open files via code command: Results in SyntaxError trying to execute the file as JavaScript.
  4. Cannot launch debug sessions: Debug-related functionality completely non-functional.

Key observation

On another machine with ONLY the VS Code extension installed (no CLI), everything works normally.

The ~/.claude/settings.json on the problematic machine has extensive permission allowlists (accumulated from CLI usage) that the extension then tries to interpret, possibly leading to permission mismatch or sandboxing issues.

Steps to reproduce

  1. On Windows 11, install Claude Code CLI (npm install -g @anthropic-ai/claude-code)
  2. Install the VS Code Claude Code extension
  3. Use CLI extensively (many permission grants accumulate in settings.json)
  4. Try to run npm run dev, gh auth login --web, or code <file> from within the VS Code extension

Expected behavior

CLI and extension should either use separate config files, or sharing should not cause any functional differences between the two environments.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

CLI and extension should either use separate config files, or sharing should not cause any functional differences between the two environments.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix VSCode plugin + CLI sharing ~/.claude/settings.json causes failures on Windows [1 participants]