-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Description
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report (please file separate reports for different bugs)
- I am using the latest version of Claude Code
What's Wrong?
When running /plugin update, the marketplace git repository is updated correctly, but the plugin cache in ~/.claude/plugins/cache/ is not cleared or updated. The installed_plugins.json file also retains the old gitCommitSha.
This means updated plugin files are not reflected until the cache is manually deleted.
What Should Happen?
Plugin cache should be invalidated or updated when /plugin update is run, so that changes in the marketplace are reflected immediately.
Error Messages/Logs
No error messages - the command reports success but cache remains stale.
Evidence:
- ~/.claude/plugins/marketplaces/ - Updated (git pull works) ✓
- ~/.claude/plugins/cache/ - Not updated (old files remain) ✗
- ~/.claude/plugins/installed_plugins.json - gitCommitSha not updated ✗Steps to Reproduce
-
Add a private marketplace hosted on GitLab:
/plugin marketplace add git@gitlab.com:your-org/your-marketplace.git -
Install a plugin from the marketplace:
/plugin install your-plugin@your-marketplace -
Make changes to the plugin in the marketplace repository (e.g., update commands or agents)
-
Run
/plugin update -
Check cache directory - files remain outdated:
ls -la ~/.claude/plugins/cache/ -
Compare with marketplace directory - this is updated:
cd ~/.claude/plugins/marketplaces/your-marketplace && git log -1
Workaround: Manually delete cache directory:
rm -rf ~/.claude/plugins/cache/
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.0.69 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Windows Terminal
Additional Information
Reporter: Claude Code 2.0.69 🤖