claude-code - 💡(How to fix) Fix Plugin marketplace: empty clones, stale cache not refreshing, broken update/delete [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#46469Fetched 2026-04-11 06:19:28
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

The Claude Code plugin marketplace state manager has three systemic lifecycle bugs for git-sourced marketplaces. These affect all marketplace operations (add, update, remove) and have stable workarounds but should be fixed in the manager.

Error Message

Symptom: Adding a marketplace via URL succeeds (no error shown) but the clone directory is empty — no plugin.json or skill files are present.

Root Cause

The Claude Code plugin marketplace state manager has three systemic lifecycle bugs for git-sourced marketplaces. These affect all marketplace operations (add, update, remove) and have stable workarounds but should be fixed in the manager.

Fix Action

Fix / Workaround

The Claude Code plugin marketplace state manager has three systemic lifecycle bugs for git-sourced marketplaces. These affect all marketplace operations (add, update, remove) and have stable workarounds but should be fixed in the manager.

Workaround: Manually clone the repo:

git clone <url> ~/.claude/plugins/marketplaces/<name>

Workaround: Set lastUpdated to "2020-01-01T00:00:00.000Z" in ~/.claude/plugins/known_marketplaces.json, then restart Claude Code.

Code Example

git clone <url> ~/.claude/plugins/marketplaces/<name>
RAW_BUFFERClick to expand / collapse

Summary

The Claude Code plugin marketplace state manager has three systemic lifecycle bugs for git-sourced marketplaces. These affect all marketplace operations (add, update, remove) and have stable workarounds but should be fixed in the manager.

Bug 1: Clone creates empty directory

Symptom: Adding a marketplace via URL succeeds (no error shown) but the clone directory is empty — no plugin.json or skill files are present.

Workaround: Manually clone the repo:

git clone <url> ~/.claude/plugins/marketplaces/<name>

Bug 2: Stale data, refresh does not work

Symptom: After a marketplace is updated upstream, the cached data does not refresh even when the "Refresh" action is triggered.

Workaround: Set lastUpdated to "2020-01-01T00:00:00.000Z" in ~/.claude/plugins/known_marketplaces.json, then restart Claude Code.

Bug 3: "Update" button not pressable / "Delete" does not work

Symptom: The Update button is grayed out or unresponsive. The Delete action silently fails or leaves stale entries.

Workarounds:

  • Update: cd ~/.claude/plugins/marketplaces/<name> && git pull
  • Delete: Remove the entry directly from ~/.claude/plugins/known_marketplaces.json

Additional behavior

Claude Code rewrites known_marketplaces.json on startup, which silently reverts any manual URL edits made to the file. URL changes must go through the UI add/remove flow to persist.

Key file

~/.claude/plugins/known_marketplaces.json — source of truth for registered marketplaces.

Environment

Claude Code (CLI), macOS, git-sourced marketplaces.

extent analysis

TL;DR

Manually intervene in the marketplace state manager by using workarounds such as manual cloning, updating lastUpdated in known_marketplaces.json, and directly modifying the repository or JSON file to mitigate the systemic lifecycle bugs.

Guidance

  • For Bug 1, manually clone the repository using git clone <url> ~/.claude/plugins/marketplaces/<name> to ensure the clone directory is populated.
  • For Bug 2, update the lastUpdated field in ~/.claude/plugins/known_marketplaces.json to a past date and restart Claude Code to force a refresh of the cached data.
  • For Bug 3, use cd ~/.claude/plugins/marketplaces/<name> && git pull to update a marketplace when the Update button is unresponsive, and manually remove entries from known_marketplaces.json for deletion.
  • Be aware that manual edits to known_marketplaces.json are reverted on startup, so changes must be made through the UI or by using the provided workarounds.

Example

To update a marketplace manually, you can use the following command:

cd ~/.claude/plugins/marketplaces/<name> && git pull

Replace <name> with the actual name of the marketplace you wish to update.

Notes

These workarounds are temporary solutions to systemic bugs in the marketplace state manager. A permanent fix would require addressing the underlying issues in the manager itself.

Recommendation

Apply the provided workarounds, as they offer a stable way to mitigate the bugs until a fixed version of the marketplace state manager is available.

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