claude-code - 💡(How to fix) Fix [BUG] [Cowork] macOS Seatbelt blocks write to /sessions/.../tmp — Bash completely broken [1 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#52935Fetched 2026-04-25 06:16:47
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

Error Message

Error (on every Bash operation):

Error Messages/Logs

Error (on every Bash operation):

Root Cause

Root cause (per Anthropic support clarification): Cowork's macOS Seatbelt profile does not grant write access to the /sessions/gallant-hopeful-davinci/tmp directory. This is separate from the settings.json permission system — it is an OS-level sandbox restriction that needs to be fixed in Cowork's Seatbelt profile.

Code Example

**Error (on every Bash operation):**
EACCES: permission denied, mkdir '/sessions/gallant-hopeful-davinci/tmp'
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?

Environment:

  • Product: Claude desktop app, Cowork mode
  • Hardware: Mac Mini, macOS
  • Session path: /sessions/gallant-hopeful-davinci/

Error (on every Bash operation): EACCES: permission denied, mkdir '/sessions/gallant-hopeful-davinci/tmp'

Root cause (per Anthropic support clarification): Cowork's macOS Seatbelt profile does not grant write access to the /sessions/gallant-hopeful-davinci/tmp directory. This is separate from the settings.json permission system — it is an OS-level sandbox restriction that needs to be fixed in Cowork's Seatbelt profile.

Impact: All Bash, Write, and Edit tool operations are completely blocked. Skills requiring subprocess execution (docx, pptx, xlsx) are unusable.

What was tried (all had no effect):

  • allowWrite: ["/sessions", "/sessions/", "/tmp", "/tmp/"] in settings.json
  • sandbox.excludedCommands: ["bash *", "sh *"]
  • sandbox.enabled: false
  • Multiple full Mac Mini restarts

None of these work because settings.json controls Claude Code's internal approval system, NOT macOS Seatbelt. The fix must be in Cowork's Seatbelt profile to allow writes to the session tmp directory.

What Should Happen?

Root cause (per Anthropic support clarification): Cowork's macOS Seatbelt profile does not grant write access to the /sessions/gallant-hopeful-davinci/tmp directory. This is separate from the settings.json permission system — it is an OS-level sandbox restriction that needs to be fixed in Cowork's Seatbelt profile.

Impact: All Bash, Write, and Edit tool operations are completely blocked. Skills requiring subprocess execution (docx, pptx, xlsx) are unusable.

Error Messages/Logs

**Error (on every Bash operation):**
EACCES: permission denied, mkdir '/sessions/gallant-hopeful-davinci/tmp'

Steps to Reproduce

What was tried (all had no effect):

  • allowWrite: ["/sessions", "/sessions/", "/tmp", "/tmp/"] in settings.json
  • sandbox.excludedCommands: ["bash *", "sh *"]
  • sandbox.enabled: false
  • Multiple full Mac Mini restarts

None of these work because settings.json controls Claude Code's internal approval system, NOT macOS Seatbelt. The fix must be in Cowork's Seatbelt profile to allow writes to the session tmp directory.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

The one previous to this one Claude 1.3883.0 (93ff6c) 2026-04-21T17:24:01.000Z

Claude Code Version

Claude 1.3883.0 (93ff6c) 2026-04-21T17:24:01.000Z

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 modifying Cowork's macOS Seatbelt profile to grant write access to the /sessions/gallant-hopeful-davinci/tmp directory.

Guidance

  • The error message EACCES: permission denied, mkdir '/sessions/gallant-hopeful-davinci/tmp' indicates a permission issue at the OS level, which is not controlled by the settings.json file.
  • To fix the issue, the Cowork's Seatbelt profile needs to be updated to allow writes to the session tmp directory.
  • The previous attempts to modify settings.json or disable sandboxing did not work because they do not affect the macOS Seatbelt profile.
  • The issue is a regression, and the previous version (Claude 1.3883.0) worked as expected.

Notes

The exact steps to modify the Cowork's Seatbelt profile are not provided, and it may require additional research or support from Anthropic.

Recommendation

Apply a workaround by modifying the Cowork's Seatbelt profile to grant write access to the /sessions/gallant-hopeful-davinci/tmp directory, as this is the root cause of the issue.

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] macOS Seatbelt blocks write to /sessions/.../tmp — Bash completely broken [1 participants]