From ba8526eae762369297ce9e888c40b4549ae93e85 Mon Sep 17 00:00:00 2001 From: Howard Enos Date: Wed, 20 May 2026 08:32:47 -0700 Subject: [PATCH] fix: make check-messages.sh hook path-agnostic for D: and C: roots Hook now tries D:/claudetools then C:/claudetools so it works on both Mike's machine and Howard's without either needing machine-local config. Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.claude/settings.json b/.claude/settings.json index 0caa74f..38f7495 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -5,5 +5,18 @@ "preferences": { "autoCompact": true, "verbose": false + }, + "hooks": { + "UserPromptSubmit": [ + { + "hooks": [ + { + "type": "command", + "command": "bash -c 'for p in D:/claudetools C:/claudetools; do f=\"$p/.claude/scripts/check-messages.sh\"; [ -f \"$f\" ] && exec bash \"$f\"; done'", + "timeout": 15 + } + ] + } + ] } }