[BUG] Write tool permissions not respected despite being in allowed list

Resolved 💬 3 comments Opened Dec 11, 2025 by TimHolahan Closed Dec 14, 2025

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?

The Write tool prompts for permission even when Write(//tmp/**) is explicitly configured in both global and project-level settings files. The permission appears correctly in the system prompt's allowed tools list, but Claude Code still requests user approval for every Write operation to /tmp/.

What Should Happen?

Expected: File is written without prompting for permission
Actual: Claude Code prompts for permission approval

Error Messages/Logs

Steps to Reproduce

Steps to reproduce

  1. Add Write(//tmp/**) to ~/.claude/settings.json:

``json
{
"permissions": {
"allow": [
"Write(//tmp/**)"
],
"defaultMode": "default"
}
}
``

  1. Also add Write(//tmp/**) to project-level .claude/settings.local.json in the allow array
  1. Restart Claude Code
  1. Ask Claude to write a file to /tmp/:

``
Write a test file to /tmp/test-file.md
``

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.64

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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