[BUG] Claude Code edits my files without asking, despite "Ask Before Edits" being on

Resolved 💬 2 comments Opened Mar 25, 2026 by queenkjuul Closed Mar 25, 2026

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?

On the latest version of Claude Code (and the previous ~5 versions), Claude edits files without asking. I always have "Ask Before Edits" enabled. When I confront Claude and say, "why aren't you showing me diffs in my IDE before editing files" it shows me diffs within the chat interface, but still edits the files directly without stopping to ask.

This has been more than two weeks. I've reset all settings. I've logged out and back in, uninstalled and reinstalled.

I am using Claude Code via the VSCode interface, using latest VSCode and Claude (updated both today)

What Should Happen?

Claude should ask before editing files when "Ask Before Edits" is enabled.

Error Messages/Logs

Steps to Reproduce

I am not sure - this problem isn't happening for anyone else on my team. I've cleared ~/.claude.json, ~/.claude, logged out and back in, uninstalled and reinstalled.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.83

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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