Skip to content

feat(claude): sync Claude Code plugin cache on install and update - #273

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
feat/claude-plugin-cache-sync
Jul 4, 2026
Merged

feat(claude): sync Claude Code plugin cache on install and update#273
ScriptedAlchemy merged 1 commit into
masterfrom
feat/claude-plugin-cache-sync

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Follow-up to #268 closing the last gap in automatic plugin updates: claude plugin install copies the bundle into a versioned cache (~/.claude/plugins/cache/tracedecay/tracedecay/<version>) tracked by installed_plugins.json v2, and Claude Code loads from that cache — so refreshing the marketplace directory during tracedecay upgrade left sessions on the stale cached version until a manual claude plugin update.

Install and update-plugin now invoke Claude Code's own CLI (claude plugin install|update tracedecay@tracedecay) so the cache and registry follow Claude Code's contract instead of us writing its internal files. Best-effort by design: only runs against the real user home (temp-home test installs skip it), and a missing/failed claude binary degrades to the existing restart hint.

With #268 + this, tracedecay upgrade updates the Claude plugin end to end automatically.

🤖 Generated with Claude Code

Claude Code copies installed plugins into a versioned cache
(~/.claude/plugins/cache/...) recorded in installed_plugins.json and
loads from there, so refreshing the marketplace directory during
`tracedecay upgrade`/`update-plugin` left running installs pinned to
the stale cached version until the user manually ran `claude plugin
update`. Install and update now drive Claude Code's own CLI
(claude plugin install|update tracedecay@tracedecay) best-effort:
temp-home installs (tests) skip it, and a missing or failing claude
binary degrades to the existing restart hint.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e3734ce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@ScriptedAlchemy
ScriptedAlchemy merged commit fa8b532 into master Jul 4, 2026
14 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the feat/claude-plugin-cache-sync branch July 4, 2026 02:20
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.

1 participant