claude-code - 💡(How to fix) Fix Sandbox cannot create subdirectories under project tmp path

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…

Error Message

Error Messages/Logs

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?

Title: Sandbox cannot create subdirectories under project tmp path

▎ Body: Bash tool fails with ENOENT: no such file or directory, mkdir when creating subdirectories under /tmp/claude-1004/-config-projects-13-Al/. Writing files directly to that directory works (via Write tool), but subdirectory creation fails — breaking Bash, Grep, and Glob tools entirely. Platform: Linux (el9_7), cloud-hosted Claude Code. Similar to #36759 but the parent dir exists and is writable.

What Should Happen?

Expected behavior: All tools (Bash, Grep, Glob) should work normally. The sandbox should be able to create
subdirectories under its own tmp path, since it can already write files there.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code (cloud-hosted, claude.ai/code) on a Linux system
    ▎ 2. Run any Bash command (e.g. git status, echo hello) ▎ 3. The command fails with: ENOENT: no such file or directory, mkdir
    '/tmp/claude-1004/-config-projects-13-Al/<UUID>'
    ▎ 4. Note that the Write tool can successfully write files to /tmp/claude-1004/-config-projects-13-Al/ — only
    subdirectory creation fails
    ▎ 5. The issue persists across sessions/conversations in the same project

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

claude-opus-4-6[1m]

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

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 Sandbox cannot create subdirectories under project tmp path