[BUG] Dangerous assumptions made in regards to the work tree branching model

Resolved 💬 4 comments Opened Feb 24, 2026 by bluffomatic Closed Feb 28, 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?

The default work tree makes dangerous assumptions silently.

  • The work tree was created automatically without prompting
  • It silently branched off main, not the user's current branch
  • There was no warning or confirmation
  • For teams with protected branch workflows, this default is dangerous

What Should Happen?

Assumptions about a user's Git flow absolutely should not be made - especially silently.

Many teams have protected work flows and never do feature or bug work off of the main branch.

Error Messages/Logs

Steps to Reproduce

Open a Claude Code session in the main Claude app.

Proceed to work on an item.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.52

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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