[Bug] Write tool bypasses user allowlist by using cat+mv workaround instead of atomic writes
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
[]
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/5892
- https://github.com/anthropics/claude-code/issues/6036
- 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
Experienced this as well even though it should be able to use the write tool.
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.