[BUG] Scheduled routines fail — virtiofs cannot mount through ~/Documents symlink (OneDrive Known Folder Move)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
All scheduled routines (cowork tasks) fail immediately on start with an RPC error. The Desktop app tries to
virtiofs-mount the SKILL.md directory from ~/Documents/Claude/Scheduled/<routine-name>, but ~/Documents is a symlink
created by OneDrive's Known Folder Move feature. The virtiofs implementation tries to mkdir the path component by
component and fails because it treats the symlink as a file, not a directory. This has been working for months and
broke with last night's update.
What Should Happen?
Scheduled routines should start successfully. The virtiofs implementation should resolve symlinks in the mount source
path, as it did in previous versions.
Error Messages/Logs
RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Scheduled/<routine-name> as
.scheduled/<routine-name>: source path does not exist and could not be created:
/mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Scheduled/<routine-name>: mkdir
/mnt/.virtiofs-root/shared/Users/<username>/Documents: file exists
Steps to Reproduce
- On macOS, have OneDrive configured with Known Folder Move so that ~/Documents is a symlink to
~/Library/CloudStorage/OneDrive-<org>/Documents
- Have scheduled routine SKILL.md files at ~/Documents/Claude/Scheduled/<name>/SKILL.md
- Attempt to start any scheduled routine in Claude Desktop
- RPC error appears immediately — routine never starts
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.123
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Platform note: This occurs in the Claude Code Desktop app (macOS), not via direct API usage. The form doesn't have a
Desktop option so selecting Anthropic API as closest match.
No workaround is available: IT policy prevents disabling OneDrive Known Folder Move (the toggle is locked in OneDrive
preferences), and setting ccdScheduledTasksEnabled: false in claude_desktop_config.json is reverted by the app on
restart.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗