fix: correct hook paths from .claude/hooks to bin/hooks#7
Merged
itz4blitz merged 1 commit intoitz4blitz:mainfrom Jan 28, 2026
Merged
Conversation
The session-start and post-action-suggestions hooks were configured with incorrect paths (.claude/hooks/) while all other hooks correctly use bin/hooks/. This causes MODULE_NOT_FOUND errors on SessionStart. Error seen: Cannot find module '/path/to/project/.claude/hooks/session-start.js' Both hooks are installed to bin/hooks/ by init, so the preset paths should match.
Owner
|
I will test this after the latest v2-beta release which includes MCP. I also corrected some of the hook paths there - once it's passed CI we'll know if these are redundant or still needed. Thanks for the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
session-startandpost-action-suggestionshooks inlib/presets.jsare configured with incorrect paths (.claude/hooks/) while all other hooks correctly usebin/hooks/.This causes
MODULE_NOT_FOUNDerrors on SessionStart:Root Cause
In
lib/presets.js, two hooks had inconsistent paths:Fix
Updated both hook paths to use
bin/hooks/which is whereinitProject()actually installs them.Testing
All 636 tests pass.