Cowork: virtiofs mount fails when 'Documents' exists as file in virtual root
Bug Report
Product: Claude Cowork (Mac Desktop App)
Error:
RPC error: failed to mount /mnt/.virtiofs-root/shared/Documents/Claude/Projects/Prompts Respository as Prompts Respository: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Documents/Claude/Projects/Prompts Respository: mkdir /mnt/.virtiofs-root/shared/Documents: file exists
Description:
When creating a project in Claude Cowork and attempting to run a task, the virtiofs mount fails. The error indicates that /mnt/.virtiofs-root/shared/Documents already exists as a file rather than a directory, preventing the creation of the nested mount path.
Steps to Reproduce:
- Create a new project in Claude Cowork
- Set the project folder to a path under
~/Documents/Claude/Projects/(e.g.,Prompts Repository) - Attempt to run a task in the project
Expected Behavior:
The project folder should mount successfully via virtiofs.
Actual Behavior:
Mount fails with the error above. The underlying issue appears to be that Documents exists as a file (not a directory) in the virtiofs virtual root, blocking mkdir -p from creating the full path.
Environment:
- macOS (Darwin 25.3.0)
- Claude Desktop App (latest)
Workaround:
Renaming the folder to remove spaces partially addresses the issue, but the root cause is the virtiofs mount layer conflict.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗