[BUG] Ask permission inconsistently triggered for Edit tool in Cursor IDE

Resolved 💬 3 comments Opened Dec 29, 2025 by dbntfit Closed Jan 1, 2026

Environment

  • Claude Code Version: 2.0.75
  • IDE: Cursor (not VS Code)
  • OS: macOS (Darwin 24.6.0)
  • Date: 2025-12-29

Bug Description

The "Ask before edits" permission setting works inconsistently. Within the same session:

  • .htaccess file edit triggered a confirmation prompt ✅
  • .php file edit did NOT trigger a confirmation prompt ❌

Both file types should require confirmation based on the settings.

Settings Configuration

.claude/settings.local.json has Edit correctly configured in the ask array:

\\\json
{
"permissions": {
"allow": [
"Bash(md5sum:*)",
// ... other bash commands
],
"deny": [],
"ask": [
"Edit",
"Write",
// ... other commands
]
}
}
\
\\

Steps to Reproduce

  1. Configure Edit in the ask array in .claude/settings.local.json
  2. Start a Claude Code session in Cursor IDE
  3. Ask Claude to edit a .htaccess file → Confirmation prompt appears ✅
  4. Ask Claude to edit a .php file → No confirmation prompt, edit happens immediately ❌

Expected Behavior

All file types should trigger a confirmation prompt when Edit is in the ask array.

Actual Behavior

Only some file types (.htaccess) trigger confirmation. Other file types (.php) are edited without confirmation.

Additional Context

  • No changes were made to settings between the two edit operations
  • Both edits occurred in the same session
  • The PHP file was read before editing (as required)

Related Issues

  • #8660 - Edit preview/diff not showing in VSCode extension UI
  • #7104 - Permission to read and edit files for session not being respected

View original on GitHub ↗

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