claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Plugin cache prevents per-project installation when globally cached

Open isaaclyon opened this issue 11 months ago • 4 comments

Bug Description

  1. Plugin gets cached globally in ~/.claude/plugins/cache/
  2. Plugin gets enabled only in the project's .claude/settings.json
  3. When you try to install in another repo, CLI sees it's cached and says "already installed"
  4. But it's not actually enabled for that project

The CLI should either:

  • Install to enabledPlugins in the current project (even if cached)
  • Or ask "Install at user or project level?"

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.0.76
  • Feedback ID: 3f82e983-8ef7-4afa-bc33-9db61435be23

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/isaaclyon/.local/share/claude/versions/2.0.76 (expected in multi-process scenarios)\n    at XZR (/$bunfs/root/claude:2430:2165)\n    at fUA (/$bunfs/root/claude:2430:1885)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:24:55.323Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:25:14.925Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:26:02.807Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:26:20.037Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:27:00.774Z"},{"error":"Error: Request was aborted.\n    at _createMessage (/$bunfs/root/claude:458:3157)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:27:53.623Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:28:03.177Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:28:20.498Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:248:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:62:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-25T05:28:35.729Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/claude:46:64184)\n    at <anonymous> (/$bunfs/root/claude:60:10259)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/claude:59:3470)\n    at emitError (node:events

Note: Error logs were truncated.

isaaclyon avatar Dec 25 '25 05:12 isaaclyon

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14202
  2. https://github.com/anthropics/claude-code/issues/14185
  3. https://github.com/anthropics/claude-code/issues/15053

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 25 '25 05:12 github-actions[bot]

Experiencing the same exact thing ATM you beat me to the issue by 5 min LOL. (w/ macos)

riptscripts avatar Dec 25 '25 05:12 riptscripts

As side solution I have a project that will allow you to enable installed plugins in other local directories and also track plugins from one place: https://github.com/kaldown/ccpm

kaldown avatar Jan 02 '26 17:01 kaldown

As side solution I have a project that will allow you to enable installed plugins in other local directories and also track plugins from one place: https://github.com/kaldown/ccpm

Funny - just installed this yesterday (~: thanks for building!

isaaclyon avatar Jan 02 '26 19:01 isaaclyon

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Feb 03 '26 10:02 github-actions[bot]

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] avatar Feb 17 '26 10:02 github-actions[bot]

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.

github-actions[bot] avatar Feb 24 '26 14:02 github-actions[bot]