claude-code - 💡(How to fix) Fix [BUG] Project-scope `enabledPlugins` is silently ignored when Claude Code is launched from a subdirectory [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60512Fetched 2026-05-20 03:56:40
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

No error or warning is emitted in either case.

Code Example

# 1. Install a plugin from the official marketplace at user scope.
claude plugin install frontend-design@claude-plugins-official --scope user

# 2. Disable it at user scope, so the project-scope override has a visible effect.
claude plugin disable frontend-design@claude-plugins-official --scope user

# 3. Confirm baseline: disabled at user scope.
claude plugin list | grep -A3 'frontend-design@'
# Expect: Status: ✘ disabled

# 4. Create a fresh project that enables the plugin at project scope.
REPRO=$(mktemp -d)
cd "$REPRO" && git init -q && git commit -q --allow-empty -m init
mkdir -p .claude subdir/nested
cat > .claude/settings.json <<'JSON'
{
  "enabledPlugins": {
    "frontend-design@claude-plugins-official": true
  }
}
JSON

# 5. From the project root: project override is honored.
(cd "$REPRO" && claude plugin list | grep -A3 'frontend-design@')
# Actual:   Status: ✔ enabled    ← correct

# 6. From a subdirectory: project override is silently ignored.
(cd "$REPRO/subdir"        && claude plugin list | grep -A3 'frontend-design@')
(cd "$REPRO/subdir/nested" && claude plugin list | grep -A3 'frontend-design@')
# Actual:   Status: ✘ disabled   ← BUG: project setting is ignored
# Expected: Status: ✔ enabled

---

# From repo root  ($REPRO):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✔ enabled

# From subdirectory  ($REPRO/subdir):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✘ disabled

# From nested subdirectory  ($REPRO/subdir/nested):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✘ disabled
RAW_BUFFERClick to expand / collapse

What's Wrong?

enabledPlugins set in a project's .claude/settings.json is only applied when Claude Code is launched from the directory that directly contains .claude/. From any subdirectory of the project, the project-scope enabledPlugins entry is silently ignored — even though the plugin still appears in claude plugin list, just with the wrong Status.

The docs (Configure team marketplaces, Install plugins) explicitly advertise enabledPlugins at project scope as a way to share plugin configuration via .claude/settings.json checked into the repo.

What Should Happen?

Project-scope enabledPlugins should be applied consistently regardless of which subdirectory of the project Claude Code is launched from. This matches the behavior of other Claude Code features (CLAUDE.md discovery, project root detection, etc.) which walk up from CWD.

Steps to Reproduce

# 1. Install a plugin from the official marketplace at user scope.
claude plugin install frontend-design@claude-plugins-official --scope user

# 2. Disable it at user scope, so the project-scope override has a visible effect.
claude plugin disable frontend-design@claude-plugins-official --scope user

# 3. Confirm baseline: disabled at user scope.
claude plugin list | grep -A3 'frontend-design@'
# Expect: Status: ✘ disabled

# 4. Create a fresh project that enables the plugin at project scope.
REPRO=$(mktemp -d)
cd "$REPRO" && git init -q && git commit -q --allow-empty -m init
mkdir -p .claude subdir/nested
cat > .claude/settings.json <<'JSON'
{
  "enabledPlugins": {
    "frontend-design@claude-plugins-official": true
  }
}
JSON

# 5. From the project root: project override is honored.
(cd "$REPRO" && claude plugin list | grep -A3 'frontend-design@')
# Actual:   Status: ✔ enabled    ← correct

# 6. From a subdirectory: project override is silently ignored.
(cd "$REPRO/subdir"        && claude plugin list | grep -A3 'frontend-design@')
(cd "$REPRO/subdir/nested" && claude plugin list | grep -A3 'frontend-design@')
# Actual:   Status: ✘ disabled   ← BUG: project setting is ignored
# Expected: Status: ✔ enabled

Error Messages/Logs

# From repo root  ($REPRO):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✔ enabled

# From subdirectory  ($REPRO/subdir):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✘ disabled

# From nested subdirectory  ($REPRO/subdir/nested):
  ❯ frontend-design@claude-plugins-official
    Version: unknown
    Scope: user
    Status: ✘ disabled

No error or warning is emitted in either case.

Claude Code Version

2.1.144 (Claude Code)

Is this a regression?

I don't know.

Platform

Anthropic API

Operating System

Other Linux (Ubuntu 24.04 / kernel 6.8.0-111-generic)

Terminal/Shell

zsh

Additional Information

Related (but not duplicate) open issues:

  • #46612 — feature request that motivates fixing this; opening line says project-scope enabledPlugins is "buggy, frequently ignored". Does not isolate the subdirectory-launch trigger documented here.
  • #28554 — different symptom (re-install loop), but same underlying area.
  • #49669 — adjacent bug, worktree-specific path resolution.
  • #51118, #45323 — enabledPlugins in managed/org settings, auto-install path.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Project-scope `enabledPlugins` is silently ignored when Claude Code is launched from a subdirectory [1 comments, 2 participants]