Skip to content

Commit 152d047

Browse files
Fix hardcoded path in session-start-hook.ts
- Replaced hardcoded path with dynamic PAI_DIR environment variable - Uses $PAI_DIR/hooks/stop-hook.ts instead of /Users/daniel/.claude/hooks/stop-hook.ts - Fallback to $HOME/PAI/PAI_DIRECTORY if PAI_DIR is not set Fixes #21 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2256a04 commit 152d047

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PAI_DIRECTORY/hooks/session-start-hook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ async function sendNotification(title: string, message: string, priority: string
2727
}
2828

2929
async function testStopHook() {
30-
const stopHookPath = '/Users/daniel/.claude/hooks/stop-hook.ts';
30+
const paiDir = process.env.PAI_DIR || `${process.env.HOME}/PAI/PAI_DIRECTORY`;
31+
const stopHookPath = `${paiDir}/hooks/stop-hook.ts`;
3132

3233
console.error('\n🔍 Testing stop-hook configuration...');
3334

0 commit comments

Comments
 (0)