claude-code - 💡(How to fix) Fix Marketplace load failures (e.g. auth errors) fail silently — registered marketplace with no clone directory produces no user-visible error [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#48675Fetched 2026-04-16 06:54:02
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

When a plugin marketplace fails to clone or update (e.g., due to expired GitHub auth on a private repo), Claude Code silently no-ops instead of surfacing an actionable error. The marketplace remains registered in known_marketplaces.json but its install directory is missing, so all commands/skills/agents from plugins in that marketplace silently disappear.

Error Message

When a plugin marketplace fails to clone or update (e.g., due to expired GitHub auth on a private repo), Claude Code silently no-ops instead of surfacing an actionable error. The marketplace remains registered in known_marketplaces.json but its install directory is missing, so all commands/skills/agents from plugins in that marketplace silently disappear. Expected: A visible error like Failed to load marketplace 'myorg/private-plugins': authentication required. Run 'gh auth login' or check your SSH key. Actual: No error, no warning. Commands from that marketplace's plugins are simply absent. /help doesn't list them. The only way to diagnose is to manually inspect ~/.claude/plugins/: 3. Distinguish auth errors specifically — when git returns 401/403 or "authentication required," suggest gh auth login or credential check in the error message. 4. Detect registered-but-missing state — if known_marketplaces.json has an entry but installLocation doesn't exist, warn on session start and offer to re-clone.

Root Cause

  • Users experience plugins "suddenly breaking" with no diagnostic signal
  • Root cause (auth expiry) is invisible — users blame the plugin, the marketplace, or Claude Code itself
  • Common failure mode for private-repo marketplaces since auth tokens expire on a schedule, not tied to any user action
  • Diagnosis requires filesystem spelunking that most users won't know to do
RAW_BUFFERClick to expand / collapse

Summary

When a plugin marketplace fails to clone or update (e.g., due to expired GitHub auth on a private repo), Claude Code silently no-ops instead of surfacing an actionable error. The marketplace remains registered in known_marketplaces.json but its install directory is missing, so all commands/skills/agents from plugins in that marketplace silently disappear.

Reproduction

  1. Register a marketplace pointing to a private GitHub repo (e.g., /plugin marketplace add myorg/private-plugins) while authenticated.
  2. Use it successfully for some time — plugin commands load, skills register.
  3. Let GitHub auth expire or revoke it (PAT expiry, gh auth logout, SSH key removal).
  4. Start a new Claude Code session.

Expected: A visible error like Failed to load marketplace 'myorg/private-plugins': authentication required. Run 'gh auth login' or check your SSH key.

Actual: No error, no warning. Commands from that marketplace's plugins are simply absent. /help doesn't list them. The only way to diagnose is to manually inspect ~/.claude/plugins/:

  • known_marketplaces.json still has the entry
  • ~/.claude/plugins/marketplaces/<name>/ directory is missing
  • ~/.claude/plugins/cache/<name>/ may still contain stale versions

Impact

  • Users experience plugins "suddenly breaking" with no diagnostic signal
  • Root cause (auth expiry) is invisible — users blame the plugin, the marketplace, or Claude Code itself
  • Common failure mode for private-repo marketplaces since auth tokens expire on a schedule, not tied to any user action
  • Diagnosis requires filesystem spelunking that most users won't know to do

Suggested fixes (any of these would help)

  1. Surface load failures at session start — a warning banner: ⚠️ Marketplace 'X' failed to load: <reason>. Plugins from this marketplace will be unavailable.
  2. Add a /plugin doctor or /plugin status command that audits each registered marketplace against its installLocation and reports missing/stale/broken clones with actionable fixes.
  3. Distinguish auth errors specifically — when git returns 401/403 or "authentication required," suggest gh auth login or credential check in the error message.
  4. Detect registered-but-missing state — if known_marketplaces.json has an entry but installLocation doesn't exist, warn on session start and offer to re-clone.

Environment

  • Claude Code: 2.1.92 (VSCode extension)
  • Platform: macOS (Darwin 25.4.0)
  • Reproduced with private-repo marketplace icitadel/todd-toolkit

extent analysis

TL;DR

Surface load failures at session start with a warning banner to inform users of unavailable marketplaces due to authentication issues.

Guidance

  • Implement a check at session start to verify the existence and accessibility of each registered marketplace's install directory.
  • If a directory is missing, display a warning banner with the marketplace name and a suggested action, such as re-authenticating with GitHub.
  • Consider adding a /plugin doctor or /plugin status command to audit registered marketplaces and report any issues.
  • Distinguish between different types of errors, such as authentication errors, and provide specific guidance for each case.

Example

// Example warning banner
{
  "type": "warning",
  "message": "⚠️ Marketplace 'myorg/private-plugins' failed to load: authentication required. Run 'gh auth login' to re-authenticate."
}

Notes

The suggested fixes focus on improving error handling and user feedback. Implementing these changes should help users diagnose and resolve issues with private-repo marketplaces.

Recommendation

Apply workaround: Surface load failures at session start with a warning banner, as this provides immediate feedback to users and helps them diagnose issues with their 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 Marketplace load failures (e.g. auth errors) fail silently — registered marketplace with no clone directory produces no user-visible error [1 comments, 2 participants]