PE hyperstack: fix duplicate SessionStart hook (v1.1.1)#114
Merged
Conversation
plugin.json declared "hooks": "./hooks/hooks.json", but Claude Code auto-loads the standard hooks/hooks.json. The explicit reference made the plugin fail to load with "Duplicate hooks file detected", which killed the SessionStart bootstrap injection on 1.1.0. Remove the redundant manifest field (the file still auto-loads) and bump plugin.json + marketplace entries to 1.1.1.
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
On 1.1.0 the plugin fails to load its hook in Claude Code:
.claude-plugin/plugin.jsondeclares"hooks": "./hooks/hooks.json", but Claude Code auto-loads the standardhooks/hooks.json. The explicit reference duplicates it, the hook load fails, and the SessionStart bootstrap injection stops firing - the core enforcement mechanism is silently lost on a fresh session.Fix
.claude-plugin/plugin.json"hooks"field (the file still auto-loads);version1.1.0 → 1.1.1.claude-plugin/marketplace.jsonmetadata.version+ plugin entryversion1.1.0 → 1.1.1.cursor-plugin/plugin.jsonis unaffected - it references a distincthooks/hooks-cursor.json, not the auto-loaded file.Verification
Confirmed locally: removing the field clears the
Duplicate hooks file detectederror -claude plugin listshowshyperstack@hyperstack 1.1.0 ✔ enabledwith no hook errors after the same edit applied to the cache.