claude-code - 💡(How to fix) Fix Disabled plugins still execute SessionStart hooks

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…

Code Example

"enabledPlugins": {
     "vercel@claude-plugins-official": false
   }
RAW_BUFFERClick to expand / collapse

Bug Description

When a plugin is set to enabledPlugins: false in ~/.claude/settings.json, its hooks still execute on every session start (startup, resume, clear, compact).

Steps to Reproduce

  1. Install the Vercel plugin (official plugin from claude-plugins-official)
  2. Disable it in ~/.claude/settings.json:
    "enabledPlugins": {
      "vercel@claude-plugins-official": false
    }
  3. Open a new session or run /clear
  4. Observe that the Vercel plugin's SessionStart hooks still fire:
    • session-start-seen-skills.mjs
    • session-start-profiler.mjs
    • inject-claude-md.mjs

Expected Behavior

When enabledPlugins is set to false for a plugin, all plugin functionality should be disabled, including hooks, skills, commands, and agents.

Actual Behavior

Skills and commands appear to be disabled, but hooks defined in hooks/hooks.json within the plugin cache continue to execute. This means:

  • The disabled plugin still injects system-reminder context into conversations
  • The disabled plugin still runs profiler scripts and telemetry (trackDauActiveToday)
  • The disabled plugin can override or interfere with other plugins' hooks

Impact

  • Unwanted context injection pollutes the conversation (e.g., Vercel "greenfield" guidance in non-Vercel projects)
  • Users who disable a plugin expect it to be fully inactive
  • Interferes with other SessionStart hooks (e.g., custom hooks that load project-specific plugins)

Environment

  • Platform: Windows 10 Pro
  • Claude Code: latest
  • Plugin: vercel@claude-plugins-official v0.40.0

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 Disabled plugins still execute SessionStart hooks