[BUG] Virtiofs

Resolved 💬 4 comments Opened Apr 30, 2026 by fwilsher-dotcom Closed May 1, 2026

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?

RPC error: failed to mount ...Documents/Claude/Scheduled/rev-rec-triage-daily...
mkdir .../Users/Fraser.Wilsher/Documents: file exists

Mention: ~/Documents is a symlink → /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents. Request: CoWork should call realpath() on task paths before passing them to virtiofs.

Root cause: CoWork discovers tasks via ~/Documents/Claude/Scheduled/ (the symlink path) and passes that path directly to virtiofs for mounting. When virtiofs tries to build the mount, it hits mkdir .../Users/Fraser.Wilsher/Documents and fails because Documents is a symlink, not a real directory. If CoWork used realpath() first, it would use /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents/Claude/Scheduled/rev-rec-triage-daily — and virtiofs would succeed.

~/Documents is a symlink → /Users/Fraser.Wilsher/Library/CloudStorage/OneDrive-NiCELtd(2)/Documents
Full error: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists
Fix needed: CoWork should call realpath() on task paths before passing to virtiofs

What Should Happen?

Claude Cowork should function

Error Messages/Logs

Something went wrong
VM
Try sending your message again. If it keeps happening, share feedback so we can investigate.

Details
RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily as .scheduled/rev-rec-triage-daily: source path does not exist and could not be created: /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents/Claude/Scheduled/rev-rec-triage-daily: mkdir /mnt/.virtiofs-root/shared/Users/Fraser.Wilsher/Documents: file exists
You can restart the conversation from an earlier message.

Steps to Reproduce

Try and / run a new or existing Cowork Task

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗