Skip to content

fix(session-relay): drop duplicate hooks declaration (Claude auto-loads hooks/hooks.json)#8

Merged
DocksDocks merged 1 commit into
mainfrom
fix/claude-hooks-autoload
Jul 2, 2026
Merged

fix(session-relay): drop duplicate hooks declaration (Claude auto-loads hooks/hooks.json)#8
DocksDocks merged 1 commit into
mainfrom
fix/claude-hooks-autoload

Conversation

@DocksDocks

Copy link
Copy Markdown
Owner

Consumer install surfaced: Claude Code auto-loads the conventional hooks/hooks.json, so declaring it in manifest.hooks produces a duplicate-hooks load error in /doctor. Field removed (docks' manifest already omits it). The hook itself was active via auto-load — the error was noise, but consumer-visible. Codex manifest untouched (points at the non-standard codex-hooks.json, which is the field's intended use).

🤖 Generated with Claude Code

https://claude.ai/code/session_01UyDDEDsq6yGeJKzNAwW3ZQ

…ks/hooks.json

Claude Code loads the conventional hooks/hooks.json automatically;
declaring it in manifest.hooks makes it a duplicate and surfaces a
consumer-visible plugin load error ('Duplicate hooks file detected').
The field is only for ADDITIONAL hook files (docks' manifest already
follows this — no hooks field). Codex manifest unchanged: it points at
the non-standard hooks/codex-hooks.json, which is the intended use.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UyDDEDsq6yGeJKzNAwW3ZQ
@DocksDocks DocksDocks merged commit 60ee77e into main Jul 2, 2026
1 check passed
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.

1 participant