Skip to content

[BUG] /plugin update does not invalidate plugin cache #14061

@shohei-sawaguchi

Description

@shohei-sawaguchi

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

  1. Add a private marketplace hosted on GitLab:
    /plugin marketplace add git@gitlab.com:your-org/your-marketplace.git

  2. Install a plugin from the marketplace:
    /plugin install your-plugin@your-marketplace

  3. Make changes to the plugin in the marketplace repository (e.g., update commands or agents)

  4. Run /plugin update

  5. Check cache directory - files remain outdated:

    ls -la ~/.claude/plugins/cache/
    
  6. 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 🤖

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions