claude-code - 💡(How to fix) Fix C:/Program Files/Git/plugin marketplace add silently fails to persist absolute Windows path [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54828Fetched 2026-04-30 06:34:48
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

/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.

Root Cause

/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.

Fix Action

Workaround

Use the tilde-expanded form: /plugin marketplace add ~/Apps/marb-shared — this writes to known_marketplaces.json correctly.

RAW_BUFFERClick to expand / collapse

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

  1. Windows host, Claude Code session (any cwd)
  2. Run: /plugin marketplace add C:/Users/<username>/Apps/marb-shared
  3. Output: Successfully added marketplace: marbtrek
  4. Inspect ~/.claude/plugins/known_marketplaces.json — the entry is not present.
  5. Subsequent /plugin marketplace list does 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.

extent analysis

TL;DR

The issue can be worked around by using the tilde-expanded form of the path when adding a marketplace.

Guidance

  • Verify that the issue occurs with both forward and backslash absolute Windows paths to determine if the problem is path separator-specific.
  • Check the code handling path expansion and persistence to known_marketplaces.json for any Windows-specific logic that might be causing the issue.
  • Test the workaround with different user directories and marketplace paths to ensure it consistently works.
  • Consider logging or debugging the path handling code to see where the absolute Windows path is being incorrectly processed.

Example

No code example is provided due to lack of specific code details in the issue.

Notes

The issue seems specific to absolute Windows paths and does not occur with tilde-expanded paths, suggesting a path handling bug. The workaround provides a temporary solution but the root cause should be investigated for a permanent fix.

Recommendation

Apply the workaround using the tilde-expanded form of the path until the root cause can be identified and fixed, as it provides a consistent and reliable way to add marketplaces.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix C:/Program Files/Git/plugin marketplace add silently fails to persist absolute Windows path [1 comments, 2 participants]