Bug: Hook-Pfade werden falsch expandiert (${CLAUDE_PLUGIN_ROOT} → /plugin/scripts/) #231
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Die
hooks/hooks.jsonim Plugin verwendet korrekt die Variable${CLAUDE_PLUGIN_ROOT}:Wenn diese Hooks in die Haupt-
hooks.json(z.B.~/.config/claude-lab/hooks.json) kompiliert werden, wird der Pfad falsch expandiert:Das
/plugin/Verzeichnis existiert aber nicht. Der korrekte Pfad wäre:Auswirkung
error: Module not foundBetroffene Umgebungen
~/.config/claude-lab/hooks.json- fehlerhaft~/.config/claude-work/hooks.json- fehlerhaft (gleicher Bug)Workaround
Manuell in der Haupt-hooks.json
/plugin/scripts/durch/scripts/ersetzen.Ursache
Vermutlich wird bei der Hook-Kompilierung
${CLAUDE_PLUGIN_ROOT}zu<path>/pluginexpandiert (anstatt nur<path>), was auf eine alte Verzeichnisstruktur hindeutet wo das Plugin in einemplugin/Unterordner lag.