Skip to content

[BUG] Cowork: Folder picker rejects folders outside home directory, symlinks/junctions also blocked #24964

@aviy009

Description

@aviy009

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?

Bug Description

Cowork on Windows rejects any folder outside the user's home directory (C:\Users\<username>). The folder picker uses fs.realpath() to resolve paths before validation, which means symlinks and NTFS junctions are also rejected since they resolve back to the real path outside the home directory.

This is a significant limitation for Windows users who commonly keep project files on separate drives or outside their home folder (e.g., C:\Projects\, D:\Dev\).

Previous related issues

Both were closed but the underlying issue persists on the latest Windows version of Claude Desktop.

Steps to Reproduce

  1. Open Cowork on Windows
  2. Click to select a folder
  3. Browse to any folder outside C:\Users\<username> (e.g., C:\Projects\MyProject)
  4. Get error: "Invalid Folder Selection - The selected folder is outside your home directory. Only folders within your home directory can be used."

Symlink/Junction workaround also fails:

  1. Create a junction inside home directory pointing to the external folder:
    New-Item -ItemType Junction -Path "C:\Users\<username>\CoworkProjects\MyProject" -Target "C:\Projects\MyProject"
  2. Try to select the junction in Cowork → Same error, because fs.realpath() resolves it back to the original path

Expected Behavior

Users should be able to select any folder they have OS-level permissions to access. The home-directory-only restriction is a UI limitation that doesn't reflect actual security needs — Claude's sandbox/VM can access these paths once a session starts.

At minimum, symlinks and junctions pointing to external folders should be accepted as a valid workaround.

Environment

  • Platform: Windows 11
  • Claude Desktop: Latest version (February 2026)
  • Cowork: Research preview

What Should Happen?

Users should be able to select any folder they have OS-level permissions to access, including folders on other drives or outside the home directory. At minimum, symlinks/junctions pointing to external folders should be accepted as a valid workaround, since the folder picker could skip fs.realpath() resolution or accept the resolved path regardless of its location.

Error Messages/Logs

Steps to Reproduce

  1. Open Cowork on Windows
  2. Click to select a folder
  3. Browse to any folder outside C:\Users\<username> (e.g., C:\Projects\MyProject)
  4. Get error: "Invalid Folder Selection - The selected folder is outside your home directory. Only folders within your home directory can be used."

Symlink/Junction workaround also fails:

  1. Create a junction inside home directory pointing to the external folder:
    New-Item -ItemType Junction -Path "C:\Users\<username>\CoworkProjects\MyProject" -Target "C:\Projects\MyProject"
  2. Try to select the junction in Cowork → Same error, because fs.realpath() resolves it back to the original path

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Version 1.1.2685 (f39a62)

Platform

Other

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

Image

Metadata

Metadata

Labels

area:idebugSomething isn't workinghas reproHas detailed reproduction stepsoncallplatform:macosIssue specifically occurs on macOSplatform:windowsIssue specifically occurs on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions