[BUG] Worktree sessions are showing all sessions

Resolved 💬 2 comments Opened Apr 13, 2026 by codingscape-jay Closed Apr 13, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I create a new worktree, git worktree add ../PR-123 <branch_name>, and go into that worktree and launch Claude Code, I can see _all_ sessions across my Claude Code usage.

What Should Happen?

When I create a new worktree and launch Claude Code from within that worktree directory, I should not see sessions from other worktrees, or my main worktree. This was the behavior before a recent update

Error Messages/Logs

Steps to Reproduce

  1. Create a worktree from main: git worktree add ../some-worktree some-branch-name
  2. cd ../some-worktree
  3. claude
  4. Type /resume and see _all_ sessions

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.104

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗