[DOCS] Plugin marketplace docs omit deleted-`ref` behavior when `sha` is pinned
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/plugin-marketplaces
Section/Topic
Plugin sources, especially Marketplace sources vs plugin sources, the git-based source examples, and Plugin installation failures
Current Documentation
The docs currently say:
Plugin source — where to fetch an individual plugin listed in the marketplace. Set in thesourcefield of each plugin entry insidemarketplace.json. Supports bothref(branch/tag) andsha(exact commit).
You can pin to a specific branch, tag, or commit: ``json { "name": "github-plugin", "source": { "source": "github", "repo": "owner/plugin-repo", "ref": "v2.0.0", "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0" } } ``
Plugin installation failures Verify plugin source URLs are accessible Check that plugin directories contain required files For GitHub sources, ensure repositories are public or you have access Test plugin sources manually by cloning/downloading
What's Wrong or Missing?
A. The docs show ref and sha together, but never explain the resolution rules
The page documents that a plugin source can include both ref and sha, but it does not say what Claude Code does when both fields are present. That leaves marketplace authors guessing whether sha is the true install pin, whether ref must continue to exist upstream forever, or whether both values must resolve successfully.
B. The troubleshooting section does not cover the deleted-ref + pinned-sha case
The v2.1.141 changelog fixed claude plugin install for plugins whose marketplace ref no longer exists upstream when a sha is also pinned. The current troubleshooting guidance is still generic, so users and marketplace maintainers have no documentation telling them that this combination is supported or how to reason about it when a branch/tag is removed after publication.
Suggested Improvement
Add an explicit note near the git-based plugin source schemas and examples. For example:
When bothrefandshaare set on a plugin source, Claude Code installs the exact commit pinned bysha. As of v2.1.141, installation can still succeed if the upstream branch or tag named byrefhas been deleted, as long as the pinned commit is still available from the repository.
Also add a troubleshooting bullet under Plugin installation failures, for example:
If a plugin source pins bothrefandsha, a deleted upstream branch or tag should not block installation on Claude Code v2.1.141 or later. If installation still fails, verify that the pinnedshastill exists and that the repository is accessible.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/plugin-marketplaces | 239-245, 277-295, 969-978 | The page documents combined ref/sha plugin sources and generic install-failure troubleshooting, but not the deleted-ref behavior fixed in v2.1.141 |
Total scope: 1 page affected
3 Comments
Verified against the latest docs; this still appears unresolved.
Issue #58873 Verification
Title: [DOCS] Plugin marketplace docs omit deleted-
refbehavior whenshais pinnedIssue Date: Unknown
Verification Date: 2026-06-23
Status: RESOLVED
---
Issue Summary
This issue reports that the
plugin-marketplacesdocumentation page documents bothrefandshaon git-based plugin sources but never explains the resolution rules when both are set together. It also notes that the v2.1.141 changelog fixedclaude plugin installfor plugins whose marketplacerefno longer exists upstream when ashais also pinned, but the current troubleshooting section does not mention this combination or how to reason about deleted refs.---
Verification Results
Claim 1: The docs show
refandshatogether, but never explain the resolution rulesStatus: RESOLVED
At https://code.claude.com/docs/en/plugin-marketplaces, line 251 explicitly documents the resolution rule for the combined
ref+shacase:This statement directly addresses Claim 1: it states that
shais the effective pin, explains how Claude Code resolves the install (fetches and checks out the pinned commit directly), and qualifies which git hosts support that behavior.Verdict: Resolved. The exact rule requested by the reporter is now documented.
Claim 2: The troubleshooting section does not cover the deleted-
ref+ pinned-shacaseStatus: RESOLVED
At https://code.claude.com/docs/en/plugin-marketplaces, line 1009 inside the
Plugin installation failurestroubleshooting section explicitly covers the deleted-ref+ pinned-shacase:This troubleshooting bullet (lines 999-1009) is positioned exactly where the issue asked for it (under
Plugin installation failures), and it covers both the supported-host behavior and the AWS CodeCommit exception.Verdict: Resolved. The exact troubleshooting guidance requested by the reporter is now present.
---
Current State
| Claim | Status |
|-------|--------|
| 1. Resolution rules for combined
ref+shaare documented | RESOLVED || 2. Troubleshooting covers deleted-
ref+ pinned-shacase | RESOLVED |---
Suggested Fix
N/A - issue has been resolved.
---
References
Marketplace sources vs plugin sourcesnote followed by the resolution rule for combinedref+shaplugin sourcesrefandshasetPlugin installation failurestroubleshooting section, including the new bullet that documents deleted-ref+ pinned-shabehavior on supported hosts and the AWS CodeCommit exception---
Conclusion & Recommendation
Primary Concern: The
plugin-marketplacespage showed combinedref/shaplugin sources and listed generic troubleshooting bullets but never explained what happens when both are set or what to do when the upstreamrefis deleted.Resolution Status: RESOLVED
Recommendation: CLOSE
The page now contains explicit language in both the schema explanation (line 251) and the troubleshooting section (line 1009) that documents the combined
ref+sharesolution rule and the deleted-refbehavior the issue asked for, covering both supported hosts and the AWS CodeCommit exception.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.