Skip to content

Commit 4fbb23d

Browse files
committed
fix(plugin): quote HOOK_COMMAND path to handle spaces in home directory (#993)
Use $HOME with double quotes instead of unquoted ~ to prevent breakage when the home directory path contains spaces.
1 parent 1e14237 commit 4fbb23d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/claude-code-plugin/hooks/session-start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Constants
3131
HOOK_FILENAME = "codingbuddy-mode-detect.py"
3232
SOURCE_FILENAME = "user-prompt-submit.py"
33-
HOOK_COMMAND = f"python3 ~/.claude/hooks/{HOOK_FILENAME}"
33+
HOOK_COMMAND = f'python3 "$HOME/.claude/hooks/{HOOK_FILENAME}"'
3434

3535
# i18n Messages
3636
MESSAGES: Dict[str, Dict[str, str]] = {

0 commit comments

Comments
 (0)