claude-code - 💡(How to fix) Fix [BUG] Memory files bypass acceptEdits diff confirmation — no user review before write [1 participants]

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…
GitHub stats
anthropics/claude-code#60519Fetched 2026-05-20 03:56:29
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using acceptEdits permission mode, editing files in the project working directory triggers a diff confirmation dialog — the user sees what's about to change and can approve or reject. However, writing to memory files (~/.claude/projects/.../memory/) does not trigger this diff dialog. The write goes through silently with no user review.

This means AI-initiated memory writes have no user-facing confirmation checkpoint, unlike all other file edits under acceptEdits mode.

What Should Happen?

Memory file writes should go through the same diff confirmation dialog as any other file edit under acceptEdits mode. Users should have the opportunity to review and approve/reject memory writes before they happen.

Error Messages/Logs

Steps to Reproduce

To reproduce

Start a session with acceptEdits permission mode Edit any project file (e.g., a .md file in the working directory) → diff confirmation dialog appears as expected Have the AI write a memory file (e.g., via the Write tool to ~/.claude/projects/<project>/memory/test.md) → no diff dialog appears, file is written directly

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.119 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Related issues

#47081 (config file permission inconsistencies) #23341, #23617 (memory subsystem permission gaps) #58815 (memory write behavior) #37253, #35718 (~/.claude/ path protection)

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING