Claude Code Fixes an Edit Permission Preview Mismatch for Multi-Byte Filenames
Claude Code 2.1.274 fixed the Edit permission prompt preview sometimes showing a different location than the approved edit in files with multi-byte characters. Because a permission prompt exists so a user can verify exactly what Claude is about to change before approving it, a preview naming the wrong location weakened that check. The fix makes the location shown in the prompt match the location that actually gets edited.
Key Takeaways
- The Edit permission prompt preview could show a different location than the approved edit in files with multi-byte characters.
- Anthropic fixed the mismatch in Claude Code 2.1.274, released September 17, 2026.
- Permission previews exist so a user can verify what they are approving before Claude edits a file; a mismatch undermines that safeguard.
- The fix is one of several permission-preview accuracy issues patched across recent Claude Code releases.
- It affects any workflow with non-ASCII file or directory names, common outside English-only codebases.
- It shipped alongside other permission and credential-leak fixes in the same release.
A Trust-Boundary Preview Bug
Claude Code asks for permission before editing a file and shows a preview of the change so the user can confirm it before approving. Version 2.1.274 fixed a case where that preview could show a different location than the approved edit, in files with multi-byte characters. The location a user saw and approved was not always the location Claude actually wrote to.
Why a Preview Mismatch Matters
Permission previews are the mechanism by which a user checks Claude's proposed action before it happens. A mismatch between the previewed location and the real one weakens that safeguard, since an approval based on a wrong preview is not informed consent for what actually gets edited. The fix closes one of several permission-preview accuracy issues patched across recent Claude Code releases, and it matters most for codebases with non-ASCII file and directory names.