[BUG]
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?
When "Accept Edits" is enabled, I'm still being prompted to accept edits on the same file multiple times within a single session. The auto-accept setting doesn't persist for files that have already been accepted.
What Should Happen?
Expected Behavior
Once I accept edits on a file (or have auto-accept enabled), subsequent edits to that same file in the same session should not require additional confirmation.
Actual Behavior
Each edit to the same file prompts for acceptance, even though:
- Auto-accept edits is enabled in settings
- The file was already accepted earlier in the same session
Error Messages/Logs
n/a
Steps to Reproduce
- Enable "Accept Edits" in settings
- Start a session that makes multiple edits to the same file (e.g., a status tracking file that gets updated frequently)
- Observe that each edit still prompts for acceptance
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.7
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
Possibly Relevant Context
- The file being edited is accessed through a symlink chain:
- Project has .claude/ symlinked to a git worktree
- Path: /Users/xxx/proj/myproject/.claude → /Users/xxx/proj/claude-files-worktrees/myproject/.claude
- The symlinked path structure may be confusing the auto-accept logic (different resolved paths for "same" file?)
Additional Notes
The file in question (status.md) was edited 10+ times in one session, each time requiring manual acceptance despite the setting being enabled.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗