claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Write tool bypasses user allowlist by using cat+mv workaround instead of atomic writes

Open arpwal opened this issue 2 months ago • 3 comments

Bug Description write tool fails often, needs to read and then only write. So claude starts doing cat commands into /tmp folder and then moves them into the repo. Now, the move command isn't allowed in my allowlist - because of obvious reasons (claude can accidentally move the file into a zombie directory, specially for long running tasks). Can you please have this fixed itnernally? I have to tell it regularly to use touch+read and then write, which works.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.49
  • Feedback ID: ab6b63a8-d357-4c6b-90af-3023ca58ac8d

Errors

[]

arpwal avatar Nov 21 '25 20:11 arpwal

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5892
  2. https://github.com/anthropics/claude-code/issues/6036
  3. https://github.com/anthropics/claude-code/issues/11226

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 21 '25 20:11 github-actions[bot]

Experienced this as well even though it should be able to use the write tool.

seannam avatar Nov 24 '25 06:11 seannam

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 24 '25 10:12 github-actions[bot]