claude-code - 💡(How to fix) Fix Plugin manager: gitCommitSha in installed_plugins.json not refreshed on plugin update [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#58585Fetched 2026-05-14 03:44:28
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

When a plugin is updated, the actual plugin files in ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/ are refreshed correctly, but the gitCommitSha field in ~/.claude/plugins/installed_plugins.json retains an older value. This makes the recorded SHA inconsistent with the actually installed code.

Root Cause

When a plugin is updated, the actual plugin files in ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/ are refreshed correctly, but the gitCommitSha field in ~/.claude/plugins/installed_plugins.json retains an older value. This makes the recorded SHA inconsistent with the actually installed code.

Code Example

{
  "version": "5.5.0",
  "installPath": ".../superpowers-extended-cc/5.5.0",
  "lastUpdated": "2026-05-13T05:24:29.644Z",
  "gitCommitSha": "04bad33282e792ecfd1007a138331f1e6b288eed"
}
RAW_BUFFERClick to expand / collapse

Summary

When a plugin is updated, the actual plugin files in ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/ are refreshed correctly, but the gitCommitSha field in ~/.claude/plugins/installed_plugins.json retains an older value. This makes the recorded SHA inconsistent with the actually installed code.

Repro / Evidence

Plugin: superpowers-extended-cc@superpowers-extended-cc-marketplace from repo pcvelz/superpowers.

installed_plugins.json records:

{
  "version": "5.5.0",
  "installPath": ".../superpowers-extended-cc/5.5.0",
  "lastUpdated": "2026-05-13T05:24:29.644Z",
  "gitCommitSha": "04bad33282e792ecfd1007a138331f1e6b288eed"
}

But comparing the installed files against the repo:

  • The repo at commit 04bad33 has marketplace.json version 5.2.8 and does not contain the checking-gates / specifying-gates skills (those landed in 220f9d5, two commits later).
  • The installed cache directory has version 5.5.0 in marketplace.json and contains both gate skills.
  • diff -rq cache/.../5.5.0/ marketplaces/<marketplace>/ shows the installed cache is byte-identical with marketplace HEAD 26c74c8, modulo .git and .in_use.

So the actual installed code corresponds to 26c74c8, but gitCommitSha still reads 04bad33.

Impact

  • Cosmetic / diagnostic: users (and agents helping users) inspecting installed_plugins.json get a misleading commit SHA.
  • It complicates "which commit am I actually running?" debugging — I personally hit this and made a wrong inference before verifying via diff -rq.

Expected

After a successful plugin update, gitCommitSha should reflect the marketplace commit SHA that the plugin files were taken from (i.e., the marketplace branch HEAD at update time, or — for tarball-style installs — whatever upstream commit is being represented).

Environment

  • Claude Code on Linux (WSL2)
  • Plugin marketplace via GitHub source

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 Plugin manager: gitCommitSha in installed_plugins.json not refreshed on plugin update [1 comments, 2 participants]