-
Notifications
You must be signed in to change notification settings - Fork 669
Description
I have set up a new PAI following the recent breaking changes. The development looks promising. Thank you for this project. Although I haven't written production code in many years, I hope to contribute by identifying UX problems and general issues with getting this setup to work outside of ~/.claude from a semi-technical perspective.
The following diagnosis comes directly from Claude.
Root Cause
Your settings.json has PAI_DIR="$HOME/.claude" but your actual PAI installation is at /Users/name/PAI. This mismatch causes all the hooks to
look for files in the wrong location.
Issues Found
Issue 1: settings.json - Wrong PAI_DIR (settings.json:7)
- Current: "PAI_DIR": "$HOME/.claude"
- Should be: "PAI_DIR": "/Users/name/PAI"
Issue 2: session-start-hook.ts - Outdated fallback path (line 30)
- Current: ${process.env.HOME}/PAI/PAI_DIRECTORY (old v0.3 structure)
- Should be: ${process.env.HOME}/PAI
Issue 3: stop-hook.ts - Hardcoded iCloud path (line 150)
- Current: Hardcoded to
/Library/Mobile Documents/comapple~CloudDocs/Claude/voice-server/voices.json - Should be: ${PAI_DIR}/voice-server/voices.json
Issue 4: update-tab-titles.ts - Wrong fallback (line 83)
- Current: ${process.env.HOME}/.claude
- Should be: ${process.env.HOME}/PAI