Sandbox fails to start when ~/Documents is a symlink (OneDrive/IT-managed)
Environment: Claude Code 2.1.91, macOS (Darwin 25.4.0)
Problem: All Cowork sessions fail immediately with an RPC mount error. The sandbox cannot start at all — not just scheduled tasks, everything is blocked.
Error:
RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/jeremiah.weise/Documents/Claude/Scheduled/morning-briefing as .scheduled/morning-briefing: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Users/jeremiah.weise/Documents: mkdir /mnt/.virtiofs-root/shared/Users/jeremiah.weise/Documents: file exists
Root cause: ~/Documents is a symlink to ~/Library/CloudStorage/OneDrive-thryv/Documents, created by IT via OneDrive folder redirection. The symlink has the uchg (immutable) flag set by policy — users cannot modify it. The virtiofs mount attempts mkdir Documents but fails because the symlink already exists as a file entry.
Impact: Complete blocker — no sessions can start. Scheduled tasks exist at ~/Documents/Claude/Scheduled/ and the sandbox tries to mount them on every session init.
Workaround attempted: None available. Path is not user-configurable, symlink is IT-managed and immutable, and remote triggers can't replace local scheduled tasks (which need filesystem access).
Expected behavior: The sandbox should resolve symlinks before mounting, or the scheduled tasks directory should be configurable / stored under ~/.claude/ instead of ~/Documents/.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗