claude-code - 💡(How to fix) Fix Edit tool bypassed 'ask before edit' permission mode

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

While in "ask before edit" permission mode, the Edit tool was able to modify a file without prompting the user for confirmation.

Root Cause

While in "ask before edit" permission mode, the Edit tool was able to modify a file without prompting the user for confirmation.

RAW_BUFFERClick to expand / collapse

Description

While in "ask before edit" permission mode, the Edit tool was able to modify a file without prompting the user for confirmation.

Steps to reproduce

  1. Set permission mode to "ask before edit"
  2. During conversation, agent made an Edit tool call to modify match_pr.py
  3. The edit was applied without the user being prompted to approve or deny

Expected behavior

The user should have been prompted to approve or deny the edit before it was applied.

Actual behavior

The edit went through without any confirmation prompt.

Environment

  • Claude Code VSCode extension
  • macOS Darwin 24.6.0
  • Model: claude-opus-4-6 (1M context)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The user should have been prompted to approve or deny the edit before it was applied.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Edit tool bypassed 'ask before edit' permission mode