Skip to content

fix(claude-code): remove plugin files containing absolute paths#2167

Merged
lra merged 1 commit into
lra:masterfrom
Seize-cf:fix/claude-code-remove-absolute-paths
Mar 28, 2026
Merged

fix(claude-code): remove plugin files containing absolute paths#2167
lra merged 1 commit into
lra:masterfrom
Seize-cf:fix/claude-code-remove-absolute-paths

Conversation

@Seize-cf
Copy link
Copy Markdown
Contributor

@Seize-cf Seize-cf commented Mar 28, 2026

Summary

Remove 4 plugin management files from claude-code.cfg that should not be synced across machines:

  • plugins/installed_plugins.json: contains absolute installPath (e.g. /Users/<user>/.claude/plugins/cache/...). Claude Code auto-rebuilds this from settings.json's enabledPlugins on startup.
  • plugins/known_marketplaces.json: contains absolute installLocation. The source code explicitly warns: "Marketplace has a corrupted installLocation — This can happen after cross-platform path writes or manual edits to known_marketplaces.json."
  • plugins/blocklist.json: security blocklist cache auto-fetched from GitHub every hour — not user configuration.
  • plugins/config.json: deprecated legacy file, always contains {"repositories": {}}.

All 4 files are auto-managed by Claude Code and either contain machine-specific absolute paths or are ephemeral caches. The remaining 7 entries (agents/, CLAUDE.md, hooks/, keybindings.json, settings.json, skills/, statusline.sh) are all user-created/customizable and portable.

Follows up on #2166.

Test plan

  • Verify mackup backup / mackup restore works correctly with the updated cfg
  • Confirm removed files are auto-regenerated by Claude Code on a fresh machine

🤖 Generated with Claude Code

Remove 4 plugin management files that should not be synced:

- `plugins/installed_plugins.json`: contains absolute `installPath`
  (e.g. `/Users/<user>/.claude/plugins/cache/...`). Claude Code
  auto-rebuilds this from `settings.json` `enabledPlugins`.
- `plugins/known_marketplaces.json`: contains absolute
  `installLocation`. Source code explicitly warns about cross-platform
  path corruption.
- `plugins/blocklist.json`: security cache auto-fetched from GitHub
  every hour, not user configuration.
- `plugins/config.json`: deprecated legacy file (always `{}`).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lra lra merged commit a57bba5 into lra:master Mar 28, 2026
38 checks passed
eejd pushed a commit to eejd/mackup that referenced this pull request May 13, 2026
…2167)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants