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
write-handoff.sh's git-root fallback (#743) conflicts with subdirectory-project support (#754), sending handoffs to the wrong store #776
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:mediumRecurring cost; compounds if unfixed
scripts/write-handoff.sh:74-85 (2e7ee05, #743) resolves the handoff target via a git-root fallback, but never maps a SessionStart running from a subdirectory to the project's own store the way scripts/lib-memory-dir.sh:87-136 / :260-263 do — subdirectory projects are a supported shape per tests/test_injection_guard_754_755_756.py:230-283.
Impact
When Claude is started in repo/pkg, SessionStart reads repo/pkg/.remember, but /remember now writes to repo/.remember/ (or the repo root's {slug} store in external mode):
It reads the repo root's tmp/handoff-path hint, so it can overwrite the repo-root project's own pending, undelivered handoff.
mkdir -p at :194 creates repo/.remember with no protective .gitignore (bootstrap does not run on this path), so the note sits untracked in the parent repo.
The same misroute happens for any non-git project nested under a $HOME that is itself a git work tree — the handoff goes to ~/.remember.
The script does print "Wrote handoff to: ", so this is visible rather than silent.
Fix
Route write-handoff.sh's target resolution through the same subdirectory-aware logic lib-memory-dir.sh already uses.
How to verify
Run write-handoff.sh from repo/pkg with CLAUDE_PROJECT_DIR unset and check which remember.md changed. tests/test_write_handoff_pwd_root_743.py only covers a cwd at the project root and does not cover this case.
Found by the release-auditor during the round-1 audit of v0.34.0..HEAD. Ranked fails-to-preserve, non-blocking.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:mediumRecurring cost; compounds if unfixed
Activity
fix(#750,#751,#776): refuse tracked handoff targets; widen Codex chil…
fix(#827): add the missing docs/windows-skip-triage.md entry for the …
fix(#827): carry doctor.sh's #776 subdirectory fix, correct two stale…
Address PR #1081 review: freshest-hint-wins, UNC-safe walk terminatio…
Maintainer-requested changes for PR #1081: honest changelog, fresh-ne…
Fix #1058: walk ancestors for write-handoff.sh's session hint (#1081)