claude-code - 💡(How to fix) Fix [BUG] Selecting a custom workspace location outside of the repo does not work [1 comments, 2 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#52093Fetched 2026-04-23 07:36:45
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

None
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Claude code for Mac desktop version. Latest as of 4/27

In settings i set a custom worktree location that is outside of my repository, so let's say my home dir on Mac, and it still creates work trees in the root of my repository.

What Should Happen?

It should create worktrees in the location that I request.

Error Messages/Logs

None

Steps to Reproduce

Open Claude Code for Mac, desktop version. Change the default store location to be your home directory. While the repository is the directory within the home directory Create a new claude session with the worktree checkbox checked and ask it to make a change

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.118 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be resolved by re-examining the custom worktree location setting to ensure it is correctly configured, as the current setting is being ignored and defaulting to the repository root.

Guidance

  • Verify that the custom worktree location is correctly set to the desired directory (in this case, the home directory on Mac) and that the path is accurately specified.
  • Check for any typos or incorrect path separators in the custom worktree location setting.
  • Attempt to create a new Claude session without the worktree checkbox checked to see if the issue is specific to worktree creation.
  • Review the application's documentation or support resources to ensure that the custom worktree location feature is correctly implemented and configured.

Example

No code snippet is provided as the issue does not involve code.

Notes

The issue is reported as a regression, indicating that the feature worked in a previous version, which suggests that the problem may be related to a recent change or update.

Recommendation

Apply workaround: Re-check and re-configure the custom worktree location setting to ensure it is correct, as this may resolve the issue without requiring an upgrade or further changes.

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

claude-code - 💡(How to fix) Fix [BUG] Selecting a custom workspace location outside of the repo does not work [1 comments, 2 participants]