Overwrite prompts now warn when the existing file can't be shown, and approval is one-time.
What's wrong with this entry?
When Claude Code asks you to approve overwriting a file whose existing contents cannot be safely displayed, such as binary or odd-character content, the permission prompt now says so and tells you the approval is one-time only.
- The preview logic now separates content that is merely too large from content that fails a display-safety check.
- The notice reads: "Current contents of ... cannot be shown in full — the overwrite cannot be reviewed, so approval is one-time only (deny unless expected)."
- Unconditional; triggered by the content check itself.
Current contents of ${nr(d.file_path)} cannot be shown in full — the overwrite cannot be reviewed, so approval is one-time only (deny unless expected).
Strings lifted out of the shipped bundle, so the claim above can be checked against them.