Edit tool proceeds despite user rejection
Resolved 💬 3 comments Opened Jan 26, 2026 by tylerlaprade Closed Feb 28, 2026
Description
When I reject an Edit tool call, the edit appears to go through anyway. I then had to ask Claude to change it back.
Steps to reproduce
- Claude attempts to edit a file (e.g., changing a task label in
.vscode/tasks.json) - User explicitly rejects the edit
- The file is modified anyway despite the rejection
Expected behavior
When I reject an Edit tool call, the file should remain unchanged.
Actual behavior
The edit was applied to the file despite explicit rejection. Claude then had to make another edit to restore the original content.
Specific example
Claude attempted to change:
"dependsOn": ["Update Python UV lockfiles and dependencies"]
to:
"dependsOn": ["Sync Python dependencies"]
I rejected this edit, but the file was changed anyway. Claude later had to edit it back to the original.
Environment
- Claude Code version: 2.1.17
- OS: macOS Darwin 25.2.0
- Model: claude-opus-4-5-20250101
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗