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
The SessionStart and PostToolUse hook commands in hooks/hooks.json redirect stderr to ${CLAUDE_PROJECT_DIR:-.}/.remember/logs/hook-errors.log using 2>>. On the first session in a fresh checkout (or any time .remember/ has been cleaned up), that path does not exist yet — the script that creates it (session-start-hook.sh, lines 57–59) hasn't run. The shell opens redirection before invoking the command, so it fails with:
/bin/sh: <project>/.remember/logs/hook-errors.log: No such file or directory
Claude Code surfaces this as a hook_non_blocking_error on SessionStart:startup and every PostToolUse firing until the directory finally exists. The inner script still runs and eventually creates the directory, so it's cosmetic — but it spams the user with repeated hook errors on first use.
Repro
Fresh project dir with no .remember/.
Open Claude Code session in that dir with the plugin enabled.
Observe hook_non_blocking_error entries in the transcript for SessionStart:startup, PostToolUse:Read, PostToolUse:Bash, etc.
Suggested fix
Pre-create the log dir in the hook command itself so the redirect target is guaranteed to exist before `2>>` evaluates, e.g.:
+1, same failure mode as #23 — the stderr redirect target is opened by the shell before the plugin's own mkdir -p ever runs.
Repro: Claude Code 2.1.118 / macOS Darwin 25.2, multiple git worktrees in parallel. The proposed mkdir -p "${CLAUDE_PROJECT_DIR:-.}/.remember/logs" && bash ... in both issues is the cleanest fix.
For anyone looking for a workaround before this merges, I left a user-level SessionStart hook recipe in #23 that pre-creates the directory globally — applies to all worktrees without patching the plugin.
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 @vizionik25 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
leo-artuai commentedon Apr 23, 2026
+1, same failure mode as #23 — the stderr redirect target is opened by the shell before the plugin's own
mkdir -pever runs.Repro: Claude Code 2.1.118 / macOS Darwin 25.2, multiple git worktrees in parallel. The proposed
mkdir -p "${CLAUDE_PROJECT_DIR:-.}/.remember/logs" && bash ...in both issues is the cleanest fix.For anyone looking for a workaround before this merges, I left a user-level
SessionStarthook recipe in #23 that pre-creates the directory globally — applies to all worktrees without patching the plugin.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 @vizionik25 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>>…