Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.36 ·

Enhanced Plugin Hook Loading

Entry
JSON All of v2.0.36
EntryKind: in v2.0.36,
ChangesSection of the release

What: Plugin loading now detects and prevents duplicate hook file loading How it works:

  • Uses realpathSync() to resolve canonical file paths (at line 275643 in BwQ())
  • Tracks loaded hook files in a Set to detect duplicates
  • In strict mode (default), duplicate hooks trigger errors with helpful messages
  • Automatically loads hooks/hooks.json if it exists, so manifest shouldn't reference it

Details:

  • New 5th parameter added to plugin loading function BwQ(A, B, Q, I, G = !0) where G controls strict mode (function signature at line 275505)
  • Strict mode enabled by default but can be disabled via marketplace entry's strict: false property (call site at line 275831)
  • Enhanced logging: "Loaded hooks from standard location for plugin..." (at line 275647)
  • Error message explains the issue: "The standard hooks/hooks.json is loaded automatically, so manifest.hooks should only reference additional hook files" (at lines 275696-275697)
  • Prevents common plugin authoring mistakes and duplicate hook registrations
  • Evidence: Function BwQ() at line 275505, duplicate detection at lines 275689-275707, Set tracking at line 275637

See this entry in the whole of v2.0.36 →

Feedback