Skip to content
This repository was archived by the owner on Aug 4, 2026. It is now read-only.

fix(tts): remove redundant hooks path from plugin manifest - #7

Open
LPdsgn wants to merge 1 commit into
elevenlabs:mainfrom
LPdsgn:fix/tts-duplicate-hooks-manifest
Open

fix(tts): remove redundant hooks path from plugin manifest#7
LPdsgn wants to merge 1 commit into
elevenlabs:mainfrom
LPdsgn:fix/tts-duplicate-hooks-manifest

Conversation

@LPdsgn

@LPdsgn LPdsgn commented Jul 17, 2026

Copy link
Copy Markdown

Problem

The elevenlabs-tts plugin fails to load entirely:

elevenlabs-tts@elevenlabs
  Version: 0.1.0
  Status: ✘ failed to load
  Error: Hook load failed: Duplicate hooks file detected: ./hooks/hooks.json
  resolves to already-loaded file .../elevenlabs-tts/0.1.0/hooks/hooks.json.
  The standard hooks/hooks.json is loaded automatically, so manifest.hooks
  should only reference additional hook files.

Cause

Claude Code auto-loads hooks/hooks.json from the plugin root by convention. The explicit "hooks": "./hooks/hooks.json" field in tts/.claude-plugin/plugin.json resolves to that same file, so the loader detects a duplicate registration and rejects the plugin.

The manifest hooks field is only meant for additional hook files in non-standard locations.

Fix

Remove the redundant hooks field. The stt plugin already omits it and loads correctly with the same hooks/hooks.json convention, which confirms the auto-loading path works without the manifest reference.

Claude Code auto-loads hooks/hooks.json from the plugin root, so the
explicit "hooks" field in plugin.json resolves to the same file and
triggers "Duplicate hooks file detected", which fails the whole plugin:

  elevenlabs-tts@elevenlabs
    Status: failed to load
    Error: Hook load failed: Duplicate hooks file detected:
    ./hooks/hooks.json resolves to already-loaded file .../hooks/hooks.json

The manifest hooks field is only meant for additional hook files in
non-standard locations. The stt plugin already omits it and loads fine.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant