[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:
- Claude Code appears to attempt a marketplace refresh
- It clones the repo into a
temp_git_*directory under~/.claude/plugins/cache/ - The move/rename from temp to
~/.claude/plugins/marketplaces/claude-plugins-official/silently fails on Windows - The old marketplace directory gets deleted but is never replaced
- 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
- Install plugins on Windows:
claude plugin install playwright(or any plugin) - Verify they work:
claude plugin listshowsStatus: ✔ enabled - Restart VSCode (or close and reopen)
- Run
claude plugin list— all plugins showStatus: ✘ failed to load - Check
~/.claude/plugins/marketplaces/— theclaude-plugins-official/directory is gone - Check
~/.claude/plugins/cache/— multipletemp_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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗