claude-code - 💡(How to fix) Fix [FEATURE] Add option to disable automatic worktree creation in desktop app [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49065Fetched 2026-04-17 08:51:54
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2cross-referenced ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When using the Claude Code desktop app, a new git worktree is automatically created for each conversation. There is no supported setting to disable this behavior.

Proposed Solution

Add a supported configuration option in settings.json to disable automatic worktree creation. For example:

"worktreeEnabled": false

Environment:

  • OS: Windows 11
  • App: Claude Code Desktop

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Adding a "worktreeEnabled" configuration option to settings.json could potentially resolve the issue by allowing users to disable automatic worktree creation.

Guidance

  • Review the existing settings.json structure to determine the appropriate location for the proposed "worktreeEnabled" option.
  • Consider the potential impact of disabling automatic worktree creation on the overall functionality of the Claude Code desktop app.
  • Investigate whether any existing CLI commands or flags could be leveraged to achieve the desired behavior without modifying the settings.json file.
  • Evaluate the feasibility of implementing the proposed solution, taking into account the app's current architecture and technical constraints.

Notes

The proposed solution assumes that the Claude Code desktop app's behavior can be modified through configuration options in settings.json. However, without further information about the app's internal workings, it is uncertain whether this approach will be effective.

Recommendation

Apply workaround: Implementing the proposed "worktreeEnabled" configuration option in settings.json, as it directly addresses the user's request and provides a clear path forward for resolving the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING