[BUG] session created in the wrong place

Resolved 💬 3 comments Opened Apr 20, 2026 by bbutton Closed May 27, 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 creating a new session and choosing a directory unrelated to the current project, Claude Code rooted the session in an existing worktree and added the chosen directory as secondary instead of starting fresh."

What Should Happen?

it should open my new session inside the folder I select. (note, I'm using the new claude code desktop, not the terminal version)

Error Messages/Logs

Steps to Reproduce

  1. Have an existing project with worktrees
  2. click New Session
  3. Select a folder outside the existing project
  4. See that it puts that new folder into the git subtree and makes it part of the existing session for that overall project

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.111

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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