Skip to content

PE hyperstack: fix duplicate SessionStart hook (v1.1.1)#114

Merged
KailasMahavarkar merged 1 commit into
mainfrom
hf-PE-hyperstack-duplicate-hooks
Jun 16, 2026
Merged

PE hyperstack: fix duplicate SessionStart hook (v1.1.1)#114
KailasMahavarkar merged 1 commit into
mainfrom
hf-PE-hyperstack-duplicate-hooks

Conversation

@KailasMahavarkar

Copy link
Copy Markdown
Collaborator

Problem

On 1.1.0 the plugin fails to load its hook in Claude Code:

Error: Hook load failed: Duplicate hooks file detected: ./hooks/hooks.json
resolves to already-loaded file .../1.1.0/hooks/hooks.json.
The standard hooks/hooks.json is loaded automatically, so manifest.hooks
should only reference additional hook files.

.claude-plugin/plugin.json declares "hooks": "./hooks/hooks.json", but Claude Code auto-loads the standard hooks/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

File Change
.claude-plugin/plugin.json remove the redundant "hooks" field (the file still auto-loads); version 1.1.0 → 1.1.1
.claude-plugin/marketplace.json metadata.version + plugin entry version 1.1.0 → 1.1.1

.cursor-plugin/plugin.json is unaffected - it references a distinct hooks/hooks-cursor.json, not the auto-loaded file.

Verification

$ claude plugin validate ~/.hyperstack
✔ Validation passed

versions agree: plugin.json 1.1.1 | hooks <removed> | marketplace entry 1.1.1 | marketplace meta 1.1.1

Confirmed locally: removing the field clears the Duplicate hooks file detected error - claude plugin list shows hyperstack@hyperstack 1.1.0 ✔ enabled with no hook errors after the same edit applied to the cache.

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.
@KailasMahavarkar KailasMahavarkar merged commit 53bf2c8 into main Jun 16, 2026
4 checks passed
@KailasMahavarkar KailasMahavarkar deleted the hf-PE-hyperstack-duplicate-hooks branch June 16, 2026 05:51
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