Sessions in truncated or same-named project folders now resolve using the recorded working directory.
What's wrong with this entry?
Finding the right project folder for a session no longer depends only on the folder name. Claude Code reads the working directory recorded inside the transcript files and compares it, optionally ignoring case, which disambiguates project folders whose names were truncated.
- Reads a relocated path ("relocated" / "relocatedCwd") from the end of the file, falling back to "cwd" via a fast per-line scan of the head.
- The recorded path is sanitised the same way project folder names are before comparison.
- Transcript lookup by session id now also walks worktrees.
relocatedCwd
Strings lifted out of the shipped bundle, so the claim above can be checked against them.