[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:
.htaccessfile edit triggered a confirmation prompt ✅.phpfile 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
- Configure
Editin theaskarray in.claude/settings.local.json - Start a Claude Code session in Cursor IDE
- Ask Claude to edit a
.htaccessfile → Confirmation prompt appears ✅ - Ask Claude to edit a
.phpfile → 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗