[FEATURE] Desktop app: no way to disable auto-worktree for new sessions
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The Claude Code desktop app (Windows) automatically creates a git worktree for every new session opened on a git repository. There is no setting to opt out. This causes session breadcrumbs to display as <worktree-slug> / <project> (e.g. wonderful-hamilton-8aaf8e / MyProject) instead of just the project name, and forces work onto an auto-generated claude/<slug> branch even when the user wants to work directly on the main checkout.
This appears to be a behavior change from a previous version, where sessions opened directly in the project root.
Steps to reproduce
Open Claude Code desktop on Windows.
Add or select a folder that is a git repository (e.g. C:\path\to\MyProject).
Start a new session in that folder.
Observe: a worktree is created at <project>\.claude\worktrees\<random-slug>, the session cwd is the worktree, and the breadcrumb shows <slug> / <project>.
Expected
An option in Settings → Claude Code → Claude code desktop settings (or under Desktop app → General) to disable automatic worktree creation, so new sessions land in the main checkout.
Or at minimum, a per-session prompt asking whether to use a worktree or the main checkout.
Actual
Worktree creation is unconditional for git repos.
Existing settings (Worktree location, Branch prefix) only configure where the worktree goes and what the branch is named — no toggle to skip worktree creation entirely.
No toggle exists under the Desktop app → General tab either.
Workaround
Running claude from a terminal inside the project root bypasses the auto-worktree and opens a session in the main checkout. The desktop app has no equivalent.
Environment
OS: Windows 11 Pro 26200
App: Claude Code desktop
Repo: standard git repository with a main branch
Request
Add an "Automatically create worktree for new sessions" toggle (default-on is fine) to desktop settings so users who prefer working in the main checkout can opt out.
Proposed Solution
Add an "Automatically create worktree for new sessions" toggle (default-on is fine) to desktop settings so users who prefer working in the main checkout can opt out.
An option in Settings → Claude Code → Claude code desktop settings (or under Desktop app → General) to disable automatic worktree creation, so new sessions land in the main checkout.
Or at minimum, a per-session prompt asking whether to use a worktree or the main checkout.
Alternative Solutions
Running claude from a terminal inside the project root bypasses the auto-worktree and opens a session in the main checkout. The desktop app has no equivalent.
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
None at this time.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗