Skip to content

recall and session pickup name the wrong transcript folder in worktree sessions #235

Closed

Description

@ericlitman

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:14
  • plugins/pstack/skills/automate-me/SKILL.md:30
  • plugins/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 .claude as -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.md in cursor/plugins) says each / and . becomes -.
  • The port wrote this line when it adapted Cursor's transcript path, so the fix belongs here.

Fix

  1. Prove the failure first: run /recall once 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.
  2. Change the rule in the three files to "each / and each . becomes -", with an example path that has a dot.
  3. Add port-patch ledger entries in UPSTREAM.md and a CHANGES.md entry.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions