[BUG] Plugin marketplace creates directories with Windows paths inside working directory on WSL2

Resolved 💬 5 comments Opened Mar 10, 2026 by jasondparrish Closed Apr 7, 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?

On WSL2, the Claude Code plugin system writes a Windows-style path
(C:\Users\<user>\.claude\plugins\marketplaces\claude-plugins-official) as the installLocation in
~/.claude/plugins/known_marketplaces.json. Since this isn't a valid absolute Linux path, it gets interpreted as a
relative path and clones the marketplace repo into the current working directory as a literal directory named
C:\Users\jason\.claude\plugins\marketplaces\claude-plugins-official.

This directory reappears every session after deletion because the plugin system sees the install location doesn't
exist and re-clones it.

What Should Happen?

Expected behavior: installLocation should use a Linux-native path on WSL2 (e.g.
/home/<user>/.claude/plugins/marketplaces/claude-plugins-official)

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

  1. Run Claude Code in Windows Powershell (Windows 11)
  2. Exit and then run Claude Code in WSL2
  3. Check your working directory — a C:\Users\... directory has been created

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.72 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

Workaround: Manually edit ~/.claude/plugins/known_marketplaces.json and replace the Windows path with the Linux equivalent. It gets overwritten if you run Claude Code on the Windows side again.

Environment: WSL2 (Ubuntu), Linux 6.6.87.2-microsoft-standard-WSL2

View original on GitHub ↗

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