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 commands fail in git worktrees: .remember/logs/ not created before stderr redirect #31
The 2>> redirect opens the file before the script runs. If .remember/logs/ doesn't exist, the shell fails with:
/bin/sh: <path>/.remember/logs/hook-errors.log: No such file or directory
This happens on every SessionStart and PostToolUse event, surfacing in Claude Code as non-blocking hook errors. The scripts themselves do mkdir -p internally, but they never run because the redirect fails first.
When it reproduces
Reliably in git worktrees created by Claude Code's isolation: "worktree" agent option — CLAUDE_PROJECT_DIR is set to the worktree root, which has no .remember/ directory. Also reproduces on the first session in any fresh project checkout.
Suggested fix
Prepend mkdir -p to both hook commands so the directory exists before the redirect:
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 @PatrickHeneise 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 @PatrickHeneise 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>>…