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
Hook redirection fails in projects without pre-existing .remember/logs/ directory #32
Both hooks in hooks/hooks.json redirect stderr to .remember/logs/hook-errors.log, but nothing creates that directory before the redirect is opened. In any project that doesn't already have .remember/logs/ on disk, bash itself fails the redirection before the hook script runs, and the script never gets a chance to create the directory — a chicken-and-egg bug.
Users see errors like:
PostToolUse:Skill hook error
Failed with non-blocking status code:
/usr/bin/bash: line 1: /c/Code/React/<project>/.remember/logs/hook-errors.log: No such file or directory
on every PostToolUse:Skill (and SessionStart) invocation in affected projects.
Reproduction
cd into any project that has never been touched by the remember plugin (no .remember/ directory).
Start a Claude Code session and invoke any skill.
Observe the hook error above on every tool call.
Root cause
hooks/hooks.json (both SessionStart and PostToolUse):
Bash opens the 2>> target before running the command. If .remember/logs/ does not exist, the open fails, bash prints its own error, and the script body — which presumably would mkdir -p the directory itself — never executes.
Suggested fix
Wrap the command in bash -c '…' so mkdir -p runs before the inner bash's redirection is set up:
Fixed in #33 — bootstrap-dirs.sh now creates the .remember/logs/ directory before any stderr redirect. hooks.json no longer contains inline 2>> redirects.
Thank you @Raymond-Noosh for reporting this! With 20k installs, every fresh-project bug report helps us catch what our own testing missed. The fix includes 17 tests covering fresh projects, partial state, git worktrees, read-only filesystems, and more — so this class of bug shouldn't come back.
Activity
fix: centralize .remember/ bootstrap + portability fixes (#23, #27, #31…
fdaviddpt commentedon Apr 25, 2026
Fixed in #33 —
bootstrap-dirs.shnow creates the.remember/logs/directory before any stderr redirect. hooks.json no longer contains inline2>>redirects.Thank you @Raymond-Noosh for reporting this! With 20k installs, every fresh-project bug report helps us catch what our own testing missed. The fix includes 17 tests covering fresh projects, partial state, git worktrees, read-only filesystems, and more — so this class of bug shouldn't come back.
fix: centralize .remember/ directory bootstrap, remove hooks.json 2>>…