You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
save-session.sh: path resolution broken in plugin-mode installs #8
This works for manual installs (where the script lives at <project>/.claude/remember/scripts/save-session.sh), but breaks for plugin-mode installs where the script lives at:
Going 3 levels up from scripts/ lands at the plugin cache root (~/.claude/plugins/cache/claude-plugins-official/), not the project directory. This causes:
cd: /Users/.../.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directory
Every auto-save silently fails.
Root cause
The other 3 hook scripts (session-start-hook.sh, post-tool-hook.sh, user-prompt-hook.sh) correctly use CLAUDE_PROJECT_DIR:
This was already fixed in a prior update — save-session.sh line 57-58 now uses CLAUDE_PROJECT_DIR and CLAUDE_PLUGIN_ROOT with fallbacks, exactly as you suggested:
Activity
fdaviddpt commentedon Apr 2, 2026
This was already fixed in a prior update —
save-session.shline 57-58 now usesCLAUDE_PROJECT_DIRandCLAUDE_PLUGIN_ROOTwith fallbacks, exactly as you suggested:Duplicate of #7 (which covered the remaining unquoted path in hooks.json — now also fixed in 4d50166).
Thanks for the detailed analysis, Ryan! The root cause description was spot-on. Appreciate you filing it.
— Max
fix: centralize path resolution, fail loud on marketplace installs (#9)