Repository navigation
Description
Current scope (maintainer, 2026-10-21)
Reproduced. On 2026-10-21, /pstack:recall from the installed 1.15.0 plugin, run with claude -p from /Users/ericlitman/projects/open-pstack/.claude/worktrees/open-pstack-batch-continuation-c74f6a, followed the skill's rule and derived ~/.claude/projects/-Users-ericlitman-projects-open-pstack-.claude-worktrees-open-pstack-batch-continuation-c74f6a. Glob reported "Directory does not exist". The session's real transcripts are in ~/.claude/projects/-Users-ericlitman-projects-open-pstack--claude-worktrees-open-pstack-batch-continuation-c74f6a.
In the Cursor pstack 0.15.29 sync PR (#234), as its own commit, because both edit UPSTREAM.md and CHANGES.md. It ships in 1.16.0. The fix is as below; the sync PR's live gate adds claude:skill-invocation:recall.
Original request
Problem
/recall and session pickup compute the wrong Claude Code transcript folder when the workspace path contains a .. Every Claude Code worktree session does, because those live under .claude/worktrees/.
The port's text says the folder name is the workspace path with each / changed to -:
plugins/pstack/skills/recall/SKILL.md:14plugins/pstack/skills/automate-me/SKILL.md:30plugins/pstack/skills/poteto-mode/playbooks/session-pickup.md:5
Claude Code also changes each . to -. A session in /Users/you/proj/.claude/worktrees/x writes its transcripts under ~/.claude/projects/-Users-you-proj--claude-worktrees-x/, but the port's rule gives -Users-you-proj-.claude-worktrees-x, a folder that does not exist. Session pickup also says not to search other folders, so the skill cannot recover by looking around.
Evidence
- On 2026-10-20, a Claude Code worktree session's own scratchpad path encoded
.claudeas-claude. - The maintainer's machine has 349 transcript folders for
.claude/worktrees/sessions, and no folder name contains a.. - Cursor's own Claude Code mapping (
pstack/docs/harness/claude-code.mdin cursor/plugins) says each/and.becomes-. - The port wrote this line when it adapted Cursor's transcript path, so the fix belongs here.
Fix
- Prove the failure first: run
/recallonce in a Claude Code session whose working directory is under.claude/worktrees/, and record the folder it reads and whether it finds its own transcripts. If it finds them, close this issue with that evidence. - Change the rule in the three files to "each
/and each.becomes-", with an example path that has a dot. - Add port-patch ledger entries in
UPSTREAM.mdand aCHANGES.mdentry.
Live gate
From trusted main: claude:skill-invocation:recall only, as the stand-in for the same rule in three files. Codex transcripts live elsewhere and are unaffected.
Activity
fix(pstack): encode dots in Claude transcript folder names (ericlitma…