-
Notifications
You must be signed in to change notification settings - Fork 17.5k
[BUG] Cowork: Folder picker rejects folders outside home directory, symlinks/junctions also blocked #24964
Description
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
- [BUG] Claude Desktop Local mode rejects folders outside C:\Users on Windows, even with valid MCP config #20382 (closed)
- [BUG] Claude Desktop Folder Picker Incorrectly Restricts Access to Non-Home Drives on Windows #20550 (closed)
Both were closed but the underlying issue persists on the latest Windows version of Claude Desktop.
Steps to Reproduce
- Open Cowork on Windows
- Click to select a folder
- Browse to any folder outside
C:\Users\<username>(e.g.,C:\Projects\MyProject) - 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:
- 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"
- 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
- Open Cowork on Windows
- Click to select a folder
- Browse to any folder outside
C:\Users\<username>(e.g.,C:\Projects\MyProject) - 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:
- 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"
- 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
