claude-code - 💡(How to fix) Fix [BUG] Cowork Live Artifacts hardcode ~/Documents/Claude/Artifacts as mount path, ignoring user-configured folder and breaking macOS privacy controls [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52496Fetched 2026-04-24 06:05:37
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2closed ×1

Error Message

RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name> as .artifacts/<artifact-name>: source path is not accessible: stat /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name>: operation not permitted

Fix Action

Fix / Workaround

Workarounds Attempted

Code Example

RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name> as .artifacts/<artifact-name>: source path is not accessible: stat /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name>: operation not permitted
RAW_BUFFERClick to expand / collapse

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?

Cowork Live Artifacts hardcode ~/Documents/Claude/Artifacts as mount path, ignoring user-configured folder and breaking macOS privacy controls

Problem Statement

Cowork Live Artifacts always attempt to mount to ~/Documents/Claude/Artifacts/<artifact-name>, regardless of which folder the user has connected in the Cowork session. This causes two compounding issues:

  1. The mount path is hardcoded and cannot be changed via any setting or config file
  2. On macOS, virtiofs cannot stat ~/Documents without explicit "Documents Folder" privacy permission granted to Claude — an all-or-nothing permission that grants access to the entire Documents folder

Users who store their Claude working directory outside of ~/Documents (e.g., ~/Claude/) have no way to use Live Artifacts without granting broader filesystem access than they are comfortable with.

Workarounds Attempted

  • Deleting and recreating the Live Artifact: does not resolve, same path is used
  • Creating a symlink from ~/Documents/Claude/Artifacts to ~/Claude/Artifacts: virtiofs fails with "operation not permitted" before it can follow the symlink
  • Searching config files (~/Library/Application Support/Claude/, ~/.claude/): no stored path reference found, confirming the path is hardcoded in the app or stored server-side

Suggested Fix

Mount the Live Artifact folder relative to the user-connected Cowork session folder, not a hardcoded ~/Documents path. This is consistent with how the Code tab already handles folder selection.

Related issues: #27697, #47179

Environment

  • OS: macOS
  • Claude Desktop version: latest (April 2026)
  • Feature: Cowork Live Artifacts

What Should Happen?

Cowork should mount the Live Artifact folder relative to the folder the user connected in the session, not a hardcoded path under ~/Documents.

Error Messages/Logs

RPC error: failed to mount /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name> as .artifacts/<artifact-name>: source path is not accessible: stat /mnt/.virtiofs-root/shared/Users/<username>/Documents/Claude/Artifacts/<artifact-name>: operation not permitted

Steps to Reproduce

  1. Set up Claude working folder at ~/Claude/Artifacts (outside ~/Documents)
  2. Open Cowork and connect ~/Claude/Artifacts as the session folder
  3. Create or open a Live Artifact
  4. Observe that Cowork ignores the connected folder and attempts to mount ~/Documents/Claude/Artifacts/<artifact-name> instead

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude for Mac 1.3883.0 | 2.1.118 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be resolved by mounting the Live Artifact folder relative to the user-connected Cowork session folder instead of a hardcoded ~/Documents path.

Guidance

  • Verify that the Cowork session folder is correctly set to the desired path (e.g., ~/Claude/Artifacts) and that the Live Artifact is being created within this session.
  • Check the Claude Code configuration files (e.g., ~/Library/Application Support/Claude/, ~/.claude/) for any hardcoded path references that may be causing the issue.
  • Consider creating a feature request or upvoting related issues (#27697, #47179) to prioritize a fix for the hardcoded path issue.
  • As a temporary workaround, users may need to grant broader filesystem access to Claude or use a different working directory within ~/Documents.

Example

No code snippet is provided as the issue is related to the Claude Code application's behavior rather than a specific code snippet.

Notes

The issue is specific to macOS and the Claude Code application, and the suggested fix requires changes to the application's behavior. The provided error message and steps to reproduce can help verify the issue and test potential fixes.

Recommendation

Apply workaround: Granting broader filesystem access to Claude or using a different working directory within ~/Documents may allow users to continue using Live Artifacts until a permanent fix is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Cowork Live Artifacts hardcode ~/Documents/Claude/Artifacts as mount path, ignoring user-configured folder and breaking macOS privacy controls [2 comments, 2 participants]