Bug
A Claude tab whose agent cds into a git worktree (e.g. via the worktree tooling) writes its session file under the worktree's project directory, but Session Explorer only scans the project directory derived from the workspace path. The session becomes invisible and cannot be resumed or forked from the UI, even though it is intact on disk.
Repro
- Open workspace
~/Documents/foo.
- In a Claude tab, enter a worktree at
~/Documents/foo/.claude/worktrees/bar (agent cwd changes).
- Session file is written to
~/.claude/projects/-Users-…-foo--claude-worktrees-bar/<id>.jsonl, while Explorer scans ~/.claude/projects/-Users-…-foo/.
- The session is missing from Session Explorer for that workspace.
Expected
Sessions belonging to worktrees under the workspace should be listed (ideally labelled with their worktree), and resumable/forkable.
Notes
Observed twice on real sessions (a 1.2 MB and a 30 MB session file). Workaround is to open the worktree directory itself as a workspace, or resume by id from the worktree directory. A fix could scan sibling project dirs whose decoded path is a descendant of the workspace path.
Bug
A Claude tab whose agent
cds into a git worktree (e.g. via the worktree tooling) writes its session file under the worktree's project directory, but Session Explorer only scans the project directory derived from the workspace path. The session becomes invisible and cannot be resumed or forked from the UI, even though it is intact on disk.Repro
~/Documents/foo.~/Documents/foo/.claude/worktrees/bar(agent cwd changes).~/.claude/projects/-Users-…-foo--claude-worktrees-bar/<id>.jsonl, while Explorer scans~/.claude/projects/-Users-…-foo/.Expected
Sessions belonging to worktrees under the workspace should be listed (ideally labelled with their worktree), and resumable/forkable.
Notes
Observed twice on real sessions (a 1.2 MB and a 30 MB session file). Workaround is to open the worktree directory itself as a workspace, or resume by id from the worktree directory. A fix could scan sibling project dirs whose decoded path is a descendant of the workspace path.