[BUG] Windows: Plugin marketplace path breaks when username contains spaces/accents (VS Code task context)
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?
When Claude Code is launched as a VS Code task on Windows, the plugin marketplace fails to load because the path separator \ before .claude is dropped from the user profile path.
Expected path:
C:\Users\Francisco Durán\.claude\plugins\marketplaces\...
Actual path generated:
C:\Users\Francisco Durán.claude\plugins\marketplaces\...
Note the missing \ between Durán and .claude.
Key finding: works in terminal, fails in VS Code task
- Opening Claude Code as an interactive terminal → marketplace loads correctly, plugins work
- Opening Claude Code as a VS Code task (via
tasks.json) → marketplace path is broken, plugins fail
Both use the exact same command: claude --channels plugin:telegram@claude-plugins-official
Error output
First /plugin call returns empty:
❯ /plugin
⎿ (no content)
Second /plugin call shows the error:
Failed to load marketplace "claude-plugins-official" from source (github):
Failed to finalize marketplace cache. Please manually delete the directory at
C:\Users\Francisco Durán.claude\plugins\marketplaces\claude-plugins-official if it exists and try again.
Technical details: EACCES: permission denied, rm
'C:\Users\Francisco Durán.claude\plugins\marketplaces\claude-plugins-official'
Also seen as:
EBUSY: resource busy or locked, rename
'C:\Users\Francisco Durán.claude\plugins\marketplaces\anthropics-claude-plugins-official'
-> 'C:\Users\Francisco Durán.claude\plugins\marketplaces\claude-plugins-official'
Impact
- Plugin skills (e.g.,
telegram:configure,telegram:access) show as "Unknown skill" - Channel listener loads correctly ("Listening for channel messages from: plugin:telegram@claude-plugins-official")
- The
/plugincommand fails, preventing plugin management
Workaround attempted
- Setting
HOMEandUSERPROFILEexplicitly in task env → did not help - Deleting marketplace cache before launch → helps temporarily but regenerates on next
/plugincall - Upgrading from v2.1.90 to v2.1.91 → did not fix the issue
What Should Happen?
The plugin marketplace should load correctly regardless of whether Claude Code is launched from an interactive terminal or a VS Code task. The path to ~/.claude/plugins/marketplaces/ should be correctly resolved even when the Windows username contains spaces and/or accented characters (e.g., "Francisco Durán").
Error Messages/Logs
Steps to Reproduce
- On Windows 11, have a user account with spaces and accented characters in the name (e.g., "Francisco Durán")
- Install Claude Code v2.1.91
- Install the telegram plugin:
/install-plugin telegram@claude-plugins-official - Create a VS Code task in
.vscode/tasks.json:
{
"label": "Bot",
"type": "shell",
"command": "claude --channels plugin:telegram@claude-plugins-official",
"isBackground": true,
"problemMatcher": []
}
- Run the task from VS Code
- In the Claude Code session, type
/plugin - Observe the error with the malformed path (missing
\before.claude)
Compare: Open Claude Code as an interactive terminal in the same directory and run /plugin — it works correctly.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.91
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗