C:/Program Files/Git/plugin marketplace add silently fails to persist absolute Windows path
Description
/plugin marketplace add reports success but does not actually persist the marketplace entry to known_marketplaces.json when given an absolute Windows path. The tilde-expanded form works correctly, so this looks like a path-handling bug specific to absolute Windows paths.
Repro
- Windows host, Claude Code session (any cwd)
- Run:
/plugin marketplace add C:/Users/<username>/Apps/marb-shared - Output:
Successfully added marketplace: marbtrek - Inspect
~/.claude/plugins/known_marketplaces.json— the entry is not present. - Subsequent
/plugin marketplace listdoes not show the marketplace.
Expected
The marketplace entry should be persisted to known_marketplaces.json, matching the "Successfully added" message that's shown in the chat.
Actual
The success message is shown but no persistence occurs. From the user's perspective the command silently no-ops while pretending to have succeeded.
Workaround
Use the tilde-expanded form: /plugin marketplace add ~/Apps/marb-shared — this writes to known_marketplaces.json correctly.
Environment
- OS: Windows 11 Pro 10.0.26200
- Shell: PowerShell 7+ / Git Bash
- Claude Code: latest as of 2026-04-29
Notes
I have not confirmed whether this also fails for absolute paths with backslashes (C:\Users\...) — the path I tried used forward slashes. Worth checking both forms.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗