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 derives PROJECT_DIR from script path — fails when installed as plugin #19
When the remember plugin is installed via the Claude Code plugin marketplace, save-session.sh fails silently because it derives PROJECT_DIR from its own file path:
# Line 57 of scripts/save-session.sh
PROJECT_DIR="$(cd "$(dirname "$0")/../../.."&& pwd)"
This resolves to ~/.claude/plugins/cache/claude-plugins-official/ — not the user's actual project directory. As a result:
PIPELINE_DIR ($PROJECT_DIR/.claude/remember) points to a nonexistent path → Python pipeline fails
REMEMBER_DATA ($PROJECT_DIR/.remember) points to the wrong .remember/ → no output is ever written
REMEMBER_CONFIG and REMEMBER_HOOKS_DIR in log.sh also resolve incorrectly
The post-tool-hook.sh correctly uses $CLAUDE_PROJECT_DIR (set by Claude Code), but save-session.sh ignores it.
Symptoms
now.md and remember.md are always empty
logs/autonomous/ fills up with hundreds of failed log files containing:
cd: /Users/.../.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directory
The script assumes it lives inside the project tree (e.g., $PROJECT/.claude/remember/scripts/), but when installed as a Claude Code plugin it lives in ~/.claude/plugins/cache/. The ../../.. traversal lands in the wrong directory.
Environment
Claude Code (VS Code extension)
Plugin installed via marketplace (remember@claude-plugins-official)
Hitting the same bug in v0.1.0 plugin cache. Confirmed:
now.md and daily logs never populated
logs/autonomous/ accumulating empty files (375+ on my machine) from cd: /Users/.../.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directory
post-tool-hook.sh also leaks save-session.pid files because stale PIDs never get cleaned
The fix in main (switching to resolve-paths.sh + $CLAUDE_PROJECT_DIR) looks right — I've verified locally by patching v0.1.0 with the equivalent change and saves now work end-to-end (now.md writing, daily compression running, zero warnings).
The blocker for users is that the merged fixes (PRs #2, #3, #18) haven't been tagged as a release, so the plugin marketplace still ships the broken v0.1.0. Could you cut a v0.2.0 (or v0.1.1) release? That would unblock everyone without requiring manual patches to the plugin cache (which get overwritten on update anyway).
Fixed in #35 — log.sh now uses PIPELINE_DIR (from resolve-paths.sh) for config.json and hooks.d paths, with fallback to the old PROJECT_DIR-based path for local installs.
Thank you @vince-finqub for the excellent bug report! The exact line numbers, before/after diffs, and root cause analysis made this a 2-line fix with confidence. That's the gold standard for issue reports. Much appreciated!
Activity
gaurav18115 commentedon Apr 18, 2026
Hitting the same bug in
v0.1.0plugin cache. Confirmed:now.mdand daily logs never populatedlogs/autonomous/accumulating empty files (375+ on my machine) fromcd: /Users/.../.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directorypost-tool-hook.shalso leakssave-session.pidfiles because stale PIDs never get cleanedThe fix in
main(switching toresolve-paths.sh+$CLAUDE_PROJECT_DIR) looks right — I've verified locally by patchingv0.1.0with the equivalent change and saves now work end-to-end (now.mdwriting, daily compression running, zero warnings).The blocker for users is that the merged fixes (PRs #2, #3, #18) haven't been tagged as a release, so the plugin marketplace still ships the broken
v0.1.0. Could you cut av0.2.0(orv0.1.1) release? That would unblock everyone without requiring manual patches to the plugin cache (which get overwritten on update anyway).fix: use PIPELINE_DIR for config and hooks.d paths in log.sh (#19)
fdaviddpt commentedon Apr 25, 2026
Fixed in #35 —
log.shnow usesPIPELINE_DIR(fromresolve-paths.sh) for config.json and hooks.d paths, with fallback to the old PROJECT_DIR-based path for local installs.Thank you @vince-finqub for the excellent bug report! The exact line numbers, before/after diffs, and root cause analysis made this a 2-line fix with confidence. That's the gold standard for issue reports. Much appreciated!
fix: use PIPELINE_DIR for config.json and hooks.d paths in log.sh