claude-code - 💡(How to fix) Fix [BUG] Cowork "New Project" dialog shows mixed path separators on Windows [1 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#57907Fetched 2026-05-11 03:22:18
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1

Code Example

C:\Users\<user>\Documents/Claude/Projects

---

const defaultPath = os.homedir() + "/Documents/Claude/Projects";
// should be:
// path.join(app.getPath("documents"), "Claude", "Projects")

---

C:\Users\<user>\Documents\Claude\Projects

---

C:\Users\<user>\Documents/Claude/Projects
RAW_BUFFERClick to expand / collapse

Bug

The "Create a new project" dialog in Cowork pre-fills the project location with a path that mixes \ and / separators on Windows:

C:\Users\<user>\Documents/Claude/Projects

The home portion (C:\Users\<user>\Documents) uses Windows-native backslashes, but the appended suffix (/Claude/Projects) uses forward slashes. This suggests the code is doing plain string concatenation like:

const defaultPath = os.homedir() + "/Documents/Claude/Projects";
// should be:
// path.join(app.getPath("documents"), "Claude", "Projects")

Why it matters

  • Windows APIs accept both separators so functionality is not broken, but it looks unprofessional to users.
  • Some downstream systems (WSL2 9P mount, third-party tools, log parsers) do not normalize gracefully and can produce edge-case failures.
  • It leaks an implementation detail (hard-coded POSIX-style suffix) that suggests other path-handling code may share the same pattern.

Steps to reproduce

  1. On Windows, open Claude Desktop → Cowork → Projects → "+" → "Start from scratch"
  2. Observe the "Project location" field

Expected

All separators normalized to the platform native (\ on Windows):

C:\Users\<user>\Documents\Claude\Projects

Actual

C:\Users\<user>\Documents/Claude/Projects

Environment

  • OS: Windows 10 (Korean UI)
  • Claude Desktop: latest as of May 2026
  • Cowork enabled

Fix suggestion

Replace the offending string concatenation with path.join() (Node) or the platform-appropriate equivalent. Likely a one-line change. Worth grepping the codebase for other "/"-suffixed path concatenations at the same time.

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] Cowork "New Project" dialog shows mixed path separators on Windows [1 participants]