meridian icon indicating copy to clipboard operation
meridian copied to clipboard

Hook errors

Open Override92 opened this issue 1 year ago • 3 comments

Starting the session I got a "SessionStart:startup hook error" followed by "PreToolUse:Task hook error"s and "PreToolUse:ExitPlanMode hook error"s and "PreToolUse:Edit hook error"s. Doesn't seem to work. Not sure if this is because I'm using Windows? No idea how to fix this.

Override92 avatar Nov 14 '25 14:11 Override92

I was experiencing the same issue (also on Windows), and I believe I have it resolved now. For me at least, $CLAUDE_PROJECT_DIR wasn't being resolved. I modified each hook in .claude/settings.json from "command": "python $CLAUDE_PROJECT_DIR/.claude/hooks/... to "command: "python ./.claude/hooks/....

Not sure if any other locations need to be updated, but everything appears to be working for me after those changes.

jacobrocks1212 avatar Nov 18 '25 18:11 jacobrocks1212

I was experiencing the same issue (also on Windows), and I believe I have it resolved now. For me at least, $CLAUDE_PROJECT_DIR wasn't being resolved. I modified each hook in .claude/settings.json from "command": "python $CLAUDE_PROJECT_DIR/.claude/hooks/... to "command: "python ./.claude/hooks/....

Not sure if any other locations need to be updated, but everything appears to be working for me after those changes.

Thanks for your comment. It works now

Override92 avatar Nov 18 '25 19:11 Override92

Happy to help! By the way, some of the python scripts also have non-ASCII characters which were throwing UnicodeEncodeErrors for me. Claude can pretty easily identify and fix those

jacobrocks1212 avatar Nov 18 '25 19:11 jacobrocks1212