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
I ran into this tonight, so I can answer from observation: it doesn't — the plugin derives everything from CLAUDE_PROJECT_DIR, which Claude Code sets to the worktree path for worktree sessions. The result is a parallel .remember/ inside the worktree (handoff, daily files, logs) that's deleted along with it on cleanup, while the main checkout's memory never sees that session.
The fix I'd suggest is resolving the memory root through git's common dir in resolve-paths.sh — something like:
One subtlety: only REMEMBER_DIR should be redirected, not PROJECT_DIR itself — the session-recovery feature looks up transcripts under the slug Claude Code computed from the worktree path, so rewriting PROJECT_DIR wholesale would break recovery for worktree sessions. Non-git projects are unaffected (the rev-parse fails and everything behaves as today).
In the meantime I'm working around it with a user-level SessionStart hook that emits a corrected === HANDOFF === block when the session starts inside a worktree — that rescues the handoff file, though not the daily/log files. Happy to put a PR together if this approach sounds right to the maintainers.
Activity
dewet22 commentedon Jun 11, 2026
I ran into this tonight, so I can answer from observation: it doesn't — the plugin derives everything from
CLAUDE_PROJECT_DIR, which Claude Code sets to the worktree path for worktree sessions. The result is a parallel.remember/inside the worktree (handoff, daily files, logs) that's deleted along with it on cleanup, while the main checkout's memory never sees that session.The fix I'd suggest is resolving the memory root through git's common dir in
resolve-paths.sh— something like:One subtlety: only
REMEMBER_DIRshould be redirected, notPROJECT_DIRitself — the session-recovery feature looks up transcripts under the slug Claude Code computed from the worktree path, so rewritingPROJECT_DIRwholesale would break recovery for worktree sessions. Non-git projects are unaffected (therev-parsefails and everything behaves as today).In the meantime I'm working around it with a user-level SessionStart hook that emits a corrected
=== HANDOFF ===block when the session starts inside a worktree — that rescues the handoff file, though not the daily/log files. Happy to put a PR together if this approach sounds right to the maintainers.fix: key memory to the main checkout for git worktree sessions (#56) (#…
release: 0.8.5 — bump the manifest so marketplace installs actually u…
Per-session handoff files stop two interactive sessions from clobberi…
fix(#747): anchor the #721 tracked-handoff guard on MEMORY_PROJECT_DI…
fix(#913): cache SESSION_DIR in post-tool-hook.sh to stop re-forking …
fix(#973): key the SESSION_DIR cache on $PROJECT, not $MEMORY_PROJECT…