[BUG] Plugins fail to load after VSCode restart on Windows — marketplace directory wiped on each startup

Resolved 💬 3 comments Opened Mar 18, 2026 by mike-batrakov Closed Apr 16, 2026

Description

All plugins from claude-plugins-official fail to load after every VSCode window restart with the error:

Plugin <name> not found in marketplace claude-plugins-official

Running claude plugin marketplace update claude-plugins-official fixes it temporarily, but the marketplace directory is wiped again on the next restart.

Root Cause

The marketplace git repo cloned to ~/.claude/plugins/marketplaces/claude-plugins-official/ does not persist across restarts. On each startup:

  1. Claude Code appears to attempt a marketplace refresh
  2. It clones the repo into a temp_git_* directory under ~/.claude/plugins/cache/
  3. The move/rename from temp to ~/.claude/plugins/marketplaces/claude-plugins-official/ silently fails on Windows
  4. The old marketplace directory gets deleted but is never replaced
  5. All plugins fail with "not found in marketplace"

Evidence: ~/.claude/plugins/cache/ accumulates dozens of orphaned temp_git_* directories (30+ observed), each containing a valid clone. The marketplaces/ directory is empty after restart.

Steps to Reproduce

  1. Install plugins on Windows: claude plugin install playwright (or any plugin)
  2. Verify they work: claude plugin list shows Status: ✔ enabled
  3. Restart VSCode (or close and reopen)
  4. Run claude plugin list — all plugins show Status: ✘ failed to load
  5. Check ~/.claude/plugins/marketplaces/ — the claude-plugins-official/ directory is gone
  6. Check ~/.claude/plugins/cache/ — multiple temp_git_* directories with valid clones

Workaround

Run before each session:

claude plugin marketplace update claude-plugins-official

Environment

  • Claude Code: 2.1.78
  • Platform: Windows 10 Pro (10.0.19045)
  • Shell: Git Bash (MINGW64)
  • Node: v22.22.0
  • Git: 2.41.0.windows.1
  • IDE: VSCode (Claude Code extension)
  • Windows Defender: Checked — no quarantined files in Protection History

View original on GitHub ↗

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