Repository navigation
fix(session-flow): no-project-root handoff fallback wording and memory-dir default (#4295) - #4793
Conversation
|
PR body contract — issue linkage This PR body conforms to the issue-linkage contract. Nothing to do. |
76e11df to
b8cb6c5
Compare
…ir (#4295) save_point.py new with no --memory-dir outside a git work tree now resolves <plugin data>/topic-docs from CLAUDE_PLUGIN_DATA or, since the variable is not exported to Bash-tool commands, from its own installed cache path. It refuses with a named fix when neither is available. The topic-docs binding no longer says nothing is persisted at the fallback. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
b8cb6c5 to
f318b86
Compare
…y-root (#4295) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hx63mvV8t39y644DQ3uLnn
…t-root-handoff-dfbc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hx63mvV8t39y644DQ3uLnn
|
Claude finished @kyle-sexton's task in 45s —— View job Security review — no issues found
I reviewed this PR's diff ( Scope: Findings: none.
No GitHub Actions workflow files are part of this diff, so there's nothing in zizmor's lane to note either. |
|
Claude finished @kyle-sexton's task in 3m 35s —— View job Claude code review
No blocking findings. Reviewed against the What I checked:
Minor (not blocking, not filed as a finding): Not independently verified: I hit sandbox approval prompts trying to run |
Closes #4295
Summary
When cwd has no git top level,
save_point.py newrun without--memory-dirnow writes the handoff under the plugin data dir'stopic-docs/instead of a bare.workin cwd. It readsCLAUDE_PLUGIN_DATAwhen set and otherwise derives the dir from its own installed cache path, because Claude Code does not export that variable to Bash-tool commands.reference/topic-docs.mdno longer says "nothing persisted" of that fallback.Fix
save_point.py:_plugin_data_root/_default_memory_dirresolve the no-project-root memory root;newrefuses with a--memory-dirhint when neither source is available. Inside a git work tree the.workdefault is unchanged.save_point.py memory-rootsubcommand prints that same resolved root.find-handoffrung 1 (skills/find-handoff/reference/rung-1-known-location.md) now globs<memory-root>/handoffs/on the no-project-root branch instead of${CLAUDE_PLUGIN_DATA}/topic-docs/handoffs/, which is unset in Bash-tool commands. Without this, find-handoff could not find the handoffs the writer saves. No other reader globs that path.reference/topic-docs.mdandreference/structure.mdwording; CHANGELOG entry; version 0.38.24 (one patch above main)..worknaming symmetry). The.workdefault is consumer-configurable through the topic-docs binding, and renaming it is out of scope for this fix.Verification
plugins/session-flow/scripts/tests/test_save_point.py: 128 passed, including the newmemory-roottestpytest plugins/session-flow): 242 passed*.test.shsuites: hop_chain, check-usage-limit-reset, observer passscripts/check-changelog-parity.sh--check,--check-bump,--check-preserved,--check-order: passscripts/check-changed-skills.sh origin/main: find-handoff PASS (0 errors, 1 warning)scripts/validate-plugins.sh: passscripts/run-ruff.sh checkon the changed Python: passRelated
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hx63mvV8t39y644DQ3uLnn