Skip to content

fix: remove version field to enable automatic plugin updates#34

Merged
affaan-m merged 1 commit into
affaan-m:mainfrom
gzb1128:fix/remove-version-field-for-auto-update
Jan 23, 2026
Merged

fix: remove version field to enable automatic plugin updates#34
affaan-m merged 1 commit into
affaan-m:mainfrom
gzb1128:fix/remove-version-field-for-auto-update

Conversation

@gzb1128

@gzb1128 gzb1128 commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

This PR removes the static version field from plugin.json to enable automatic plugin updates via /plugin update.

Changes

  • Remove version: "1.0.0" from .claude-plugin/plugin.json

Why

Claude Code uses different version detection strategies:

  • Without version field → Uses git commit SHA → Auto-updates work
  • With version field → Uses static version string → Auto-updates broken

This change aligns with the pattern used by all official Anthropic plugins.

Fixes #33

Summary by CodeRabbit

  • Chores
    • Updated plugin configuration.

✏️ Tip: You can customize this high-level summary in your review settings.

Remove the static `version: "1.0.0"` field from plugin.json to enable
Claude Code's git SHA-based version detection and automatic updates.

Previously, the presence of a version field caused Claude Code to use
static version string comparison instead of git commit SHA comparison,
preventing `/plugin update` from detecting new commits.

This change aligns with the pattern used by all official Anthropic
plugins in claude-plugins-official marketplace.

Fixes affaan-m#33
@coderabbitai

coderabbitai Bot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Removed the static version field from the plugin configuration file. This change enables Claude Code to use git commit SHA comparison for automatic update detection instead of semantic version comparison, allowing the plugin to receive updates through the /plugin update command when new commits are pushed.

Changes

Cohort / File(s) Summary
Plugin Configuration
\.claude-plugin/plugin.json
Removed static version: "1.0.0" field to enable automatic updates via git SHA comparison instead of static version comparison

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A version removed, the plugin takes flight,
No more static strings holding back the night,
Git's SHA now leads the way,
Updates flow freely, every single day! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: removing the version field to enable automatic plugin updates, which is the core purpose of this PR.
Linked Issues check ✅ Passed The pull request fully addresses the coding requirements from issue #33: removing the static version field from plugin.json to enable git SHA-based version tracking for automatic updates.
Out of Scope Changes check ✅ Passed The pull request contains only the scoped change: removal of the version field from plugin.json, with no extraneous modifications outside the stated objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@affaan-m affaan-m merged commit 4ec7a6b into affaan-m:main Jan 23, 2026
2 checks passed
gzb1128 pushed a commit to gzb1128/everything-claude-code that referenced this pull request Jan 23, 2026
Remove both version fields to enable automatic plugin updates:
- metadata.version
- plugins[0].version

PR affaan-m#34 only removed version from plugin.json, but marketplace.json
still contained version fields that prevented /plugin update from working.

Official plugins (e.g., feature-dev) do not have version fields in
marketplace.json, which allows git SHA-based version detection.

Fixes affaan-m#36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin auto-update not working - /plugin update does not detect new commits

2 participants